We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d880133 commit c10b63aCopy full SHA for c10b63a
eslint.config.ts
@@ -16,4 +16,16 @@ export default defineConfig(
16
}],
17
},
18
19
+ {
20
+ name: 'extensions/browser',
21
+ files: ['src/**/*'],
22
+ rules: {
23
+ 'no-restricted-imports': ['error', {
24
+ patterns: [{
25
+ regex: '^node:',
26
+ message: 'Node.js built-in modules are not available in browser environments.',
27
+ }],
28
29
+ },
30
31
)
package.json
@@ -27,6 +27,10 @@
"Other"
],
"main": "./dist/index.mjs",
+ "browser": "./dist/index.mjs",
+ "extensionKind": [
32
+ "workspace"
33
+ ],
34
"icon": "res/logo.png",
35
"files": [
36
"LICENSE.md",
0 commit comments