Skip to content

Commit 2cf1ea8

Browse files
committed
build: Disable preserveModules for tracing-internal & browser
1 parent 27247de commit 2cf1ea8

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

packages/browser/rollup.npm.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,11 @@ export default makeNPMConfigVariants(
44
makeBaseNPMConfig({
55
// packages with bundles have a different build directory structure
66
hasBundles: true,
7+
packageSpecificConfig: {
8+
output: {
9+
// Combine output into a single file to avoid expensive require/import calls
10+
preserveModules: false,
11+
},
12+
},
713
}),
814
);
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
import { makeBaseNPMConfig, makeNPMConfigVariants } from '../../rollup/index.js';
22

3-
export default makeNPMConfigVariants(makeBaseNPMConfig());
3+
export default makeNPMConfigVariants(
4+
makeBaseNPMConfig({
5+
packageSpecificConfig: {
6+
output: {
7+
// Combine output into a single file to avoid expensive require/import calls
8+
preserveModules: false,
9+
},
10+
},
11+
}),
12+
);

0 commit comments

Comments
 (0)