-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Description
💻
- Would you like to work on a fix?
How are you using Babel?
babel-loader (webpack)
Input code
no codeConfiguration file name
No response
Configuration
No response
Current and expected behavior
If I install newest preset-env with npm, I have to install plugin-syntax-dynamic-import manually due to plugin-syntax-dynamic-import in both dependencies and devDependencies.
update 2021-09-07
Seem like duplicate dependency didn't cause my problem, but we still need to delete plugin-syntax-dynamic-import in devDependencies.
Environment
System:
OS: macOS 11.5.2
Binaries:
Node: 14.17.0 - ~/.nvm/versions/node/v14.17.0/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.13 - ~/.nvm/versions/node/v14.17.0/bin/npm
npmPackages:
@babel/preset-env: ^7.15.0 => 7.15.0
@babel/runtime: 7.1.2 => 7.1.2
babel-eslint: 8.2.6 => 8.2.6
babel-helper-vue-jsx-merge-props: 2.0.3 => 2.0.3
babel-loader: ^8.0.5 => 8.2.2
Possible solution
delete plugin-syntax-dynamic-import in devDependencies
Additional context
No response