Skip to content

Commit adc2c32

Browse files
committed
hm..
1 parent e782528 commit adc2c32

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

dev-packages/rollup-utils/npmHelpers.mjs

+1-11
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const packageDotJSON = JSON.parse(fs.readFileSync(path.resolve(process.cwd(), '.
3030
export function makeBaseNPMConfig(options = {}) {
3131
const {
3232
entrypoints = ['src/index.ts'],
33-
esModuleInterop = false,
3433
hasBundles = false,
3534
packageSpecificConfig = {},
3635
sucrase = {},
@@ -83,16 +82,7 @@ export function makeBaseNPMConfig(options = {}) {
8382
// (We don't need it, so why waste the bytes?)
8483
freeze: false,
8584

86-
// Equivalent to `esModuleInterop` in tsconfig.
87-
// Controls whether rollup emits helpers to handle special cases where turning
88-
// `import * as dogs from 'dogs'`
89-
// into
90-
// `const dogs = require('dogs')`
91-
// doesn't work.
92-
//
93-
// `auto` -> emit helpers
94-
// `esModule` -> don't emit helpers
95-
interop: esModuleInterop ? 'auto' : 'esModule',
85+
interop: 'esModule',
9686
},
9787

9888
plugins: [

packages/react/rollup.npm.config.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { makeBaseNPMConfig, makeNPMConfigVariants } from '@sentry-internal/rollu
22

33
export default makeNPMConfigVariants(
44
makeBaseNPMConfig({
5-
esModuleInterop: true,
65
packageSpecificConfig: {
76
external: ['react', 'react/jsx-runtime'],
87
},

0 commit comments

Comments
 (0)