Revision 0.33.10 (#991)

* Specify Modules with Potential for Side Effects

* Version
This commit is contained in:
sinclairzx81
2024-09-12 15:15:18 +09:00
committed by GitHub
parent d387b2adb7
commit d049293b23
3 changed files with 15 additions and 6 deletions
+12 -3
View File
@@ -91,10 +91,19 @@ function resolveMetadata() {
repository: packageJson.repository,
// flagged by socket.dev if not present
scripts: { test: 'echo test' },
// disable auto bundle strategy: see https://github.com/esm-dev/esm.sh#bundling-strategy
'esm.sh': { 'bundle': false },
types: "./build/cjs/index.d.ts",
main: "./build/cjs/index.js",
module: "./build/esm/index.mjs"
module: "./build/esm/index.mjs",
// disable auto bundle strategy: see https://github.com/esm-dev/esm.sh#bundling-strategy
'esm.sh': { 'bundle': false },
// specify modules with potential for side effects
'sideEffects': [
'./build/esm/type/registry/format.mjs',
'./build/esm/type/registry/type.mjs',
'./build/esm/type/system/policy.mjs',
'./build/cjs/type/registry/format.js',
'./build/cjs/type/registry/type.js',
'./build/cjs/type/system/policy.js'
]
}
}