Skip to content

Commit bd6b552

Browse files
Prevent user supplied babel optionsWe didn't support that before anyway
1 parent cebff34 commit bd6b552

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,11 @@ function createConfig(options, entry, format, writeMeta) {
368368
!useTypescript && flow({ all: true, pretty: true }),
369369
// Only used for async await
370370
babel({
371+
// We mainly use bublé to transpile JS and only use babel to
372+
// transpile down `async/await`. To prevent conflicts with user
373+
// supplied configurations we set this option to false. Note
374+
// that we never supported using custom babel configs anyway.
375+
babelrc: false,
371376
exclude: 'node_modules/**',
372377
plugins: [
373378
'@babel/plugin-syntax-jsx',

0 commit comments

Comments
 (0)