Skip to content

Commit c436839

Browse files
clarkdoPooya Parsa
authored andcommitted
refactor(babel-preset-app): remove babel-plugin-dynamic-import-node (nuxt#6197)
1 parent 09878cd commit c436839

File tree

5 files changed

+2
-6
lines changed

5 files changed

+2
-6
lines changed

babel.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ module.exports = function (api) {
1111
node: 'current'
1212
}
1313
}]
14-
],
15-
plugins: ['dynamic-import-node']
14+
]
1615
}
1716
}
1817
return {}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"@vue/test-utils": "^1.0.0-beta.29",
3838
"babel-eslint": "^10.0.2",
3939
"babel-jest": "^24.8.0",
40-
"babel-plugin-dynamic-import-node": "^2.3.0",
4140
"cheerio": "^1.0.0-rc.3",
4241
"codecov": "^3.5.0",
4342
"consola": "^2.10.0",

packages/babel-preset-app/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
## Usage
66

7-
This is the default preset used by Nuxt, which is mainly a wrapper around the `@babel/preset-env` preset. It also optionally uses the `@vue/babel-preset-jsx` preset as well as `@babel/plugin-syntax-dynamic-import`, `@babel/plugin-proposal-decorators`, `@babel/plugin-proposal-class-properties`, `@babel/plugin-transform-runtime`. Furthermore the preset is adding polyfills.
7+
This is the default preset used by Nuxt, which is mainly a wrapper around the `@babel/preset-env` preset. It also optionally uses the `@vue/babel-preset-jsx` preset as well as `@babel/plugin-proposal-decorators`, `@babel/plugin-proposal-class-properties`, `@babel/plugin-transform-runtime`. Furthermore the preset is adding polyfills.
88

99
**Note**: Since `core-js@2` and `core-js@3` are both supported from Babel 7.4.0, we recommend directly adding `core-js` and setting the version via the [`corejs`](#corejs) option.
1010

packages/babel-preset-app/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"@babel/core": "^7.5.5",
1414
"@babel/plugin-proposal-class-properties": "^7.5.5",
1515
"@babel/plugin-proposal-decorators": "^7.4.4",
16-
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
1716
"@babel/plugin-transform-runtime": "^7.5.5",
1817
"@babel/preset-env": "^7.5.5",
1918
"@babel/runtime": "^7.5.5",

packages/babel-preset-app/src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ module.exports = (context, options = {}) => {
120120
}
121121

122122
plugins.push(
123-
require('@babel/plugin-syntax-dynamic-import'),
124123
[require('@babel/plugin-proposal-decorators'), {
125124
decoratorsBeforeExport,
126125
legacy: decoratorsLegacy !== false

0 commit comments

Comments
 (0)