Skip to content

Commit

Permalink
fix(babel): don't rewrite import of rlp package for @vue/cli@4.5.15
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Jan 27, 2022
1 parent e4b56fe commit 0fdd296
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions babel.esm.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ config.presets
.filter(plugin => Array.isArray(plugin))
.find(([name]) => name === '@babel/preset-env')[1].modules = false

config.plugins.push(['add-import-extension', { extension: 'mjs' }])
config.plugins.push('transform-default-named-imports')
config.plugins.push(
['add-import-extension', { extension: 'mjs' }],
['transform-default-named-imports', { exclude: ['rlp'] }]
)

module.exports = config

0 comments on commit 0fdd296

Please sign in to comment.