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.
[Symbol.toStringTag]: 'Module'
1 parent fe1a22c commit 26bc18bCopy full SHA for 26bc18b
rollup/npmHelpers.js
@@ -44,8 +44,14 @@ export function makeBaseNPMConfig(options = {}) {
44
// output individual files rather than one big bundle
45
preserveModules: true,
46
47
- // any wrappers or helper functions generated by rollup can use ES6 features
48
- generatedCode: 'es2015',
+ // Allow wrappers or helper functions generated by rollup to use any ES6 features except symbols. (Symbols in
+ // 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 XXXXX.)
51
+ generatedCode: {
52
+ preset: 'es2015',
53
+ symbols: false,
54
+ },
55
56
// don't add `"use strict"` to the top of cjs files
57
strict: false,
0 commit comments