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 9739305 commit 75f8a85Copy full SHA for 75f8a85
dev-packages/rollup-utils/npmHelpers.mjs
@@ -26,7 +26,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
26
27
const packageDotJSON = JSON.parse(fs.readFileSync(path.resolve(process.cwd(), './package.json'), { encoding: 'utf8' }));
28
29
-const ignoreSideEffects = [/[\\\/]debug-build\.ts$/];
+const ignoreSideEffects = /[\\\/]debug-build\.ts$/;
30
31
export function makeBaseNPMConfig(options = {}) {
32
const {
@@ -87,7 +87,7 @@ export function makeBaseNPMConfig(options = {}) {
87
88
treeshake: {
89
moduleSideEffects: (id, external) => {
90
- return external === false && ignoreSideEffects.some(regex => regex.test(id));
+ return external === false && ignoreSideEffects.test(id);
91
}
92
},
93
0 commit comments