File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,14 @@ export function makeBaseNPMConfig(options = {}) {
44
44
// output individual files rather than one big bundle
45
45
preserveModules : true ,
46
46
47
- // any wrappers or helper functions generated by rollup can use ES6 features
48
- generatedCode : 'es2015' ,
47
+ // Allow wrappers or helper functions generated by rollup to use any ES6 features except symbols. (Symbols in
48
+ // general are fine, but the `[Symbol.toStringTag]: 'Module'` which Rollup adds alongside `__esModule:
49
+ // true` in CJS modules makes it so that Jest <= 29.2.2 crashes when trying to mock generated `@sentry/xxx`
50
+ // packages. See https://github.com/getsentry/sentry-javascript/pull/6043.)
51
+ generatedCode : {
52
+ preset : 'es2015' ,
53
+ symbols : false ,
54
+ } ,
49
55
50
56
// don't add `"use strict"` to the top of cjs files
51
57
strict : false ,
You can’t perform that action at this time.
0 commit comments