diff --git a/src/index.js b/src/index.js index 4dc26d49..162b76bb 100644 --- a/src/index.js +++ b/src/index.js @@ -487,9 +487,7 @@ function createConfig(options, entry, format, writeMeta) { nodeResolve({ mainFields: ['module', 'jsnext', 'main'], browser: options.target !== 'node', - exportConditions: [ - options.target === 'node' ? 'node' : 'browser' - ], + exportConditions: [options.target === 'node' ? 'node' : 'browser'], // defaults + .jsx extensions: ['.mjs', '.js', '.jsx', '.json', '.node'], preferBuiltins: options.target === 'node',