Skip to content

[Bug]: duplicate plugin-syntax-dynamic-import in package.json of preset-env #13718

@fyzhu

Description

@fyzhu

💻

  • Would you like to work on a fix?

How are you using Babel?

babel-loader (webpack)

Input code

no code

Configuration 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    i: needs triageoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions