Skip to content

Commit fb62634

Browse files
committed
build(replay): Stop preserving modules
1 parent 660d4bb commit fb62634

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/replay/rollup.npm.config.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import path from 'path';
2-
31
import replace from '@rollup/plugin-replace';
42

53
import { makeBaseNPMConfig, makeNPMConfigVariants } from '../../rollup/index';
@@ -23,12 +21,7 @@ export default makeNPMConfigVariants(
2321
// set exports to 'named' or 'auto' so that rollup doesn't warn about
2422
// the default export in `worker/worker.js`
2523
exports: 'named',
26-
27-
// As we are inlining the rrweb dependency here, we need to ensure the nested folders are correct
28-
// Without this config, you get:
29-
// * build/npm/esm/node_modules/rrweb/...
30-
// * build/npm/esm/packages/replay/...
31-
preserveModulesRoot: path.join(process.cwd(), 'src'),
24+
preserveModules: false,
3225
},
3326
},
3427
}),

0 commit comments

Comments
 (0)