Browse Source

Dynamic import() for Node

v5.0.0-beta
Eli Perelman 8 years ago
parent
commit
ac48dbf3c3
  1. 1
      packages/neutrino-preset-node/index.js
  2. 1
      packages/neutrino-preset-node/package.json
  3. 18
      packages/neutrino-preset-node/yarn.lock

1
packages/neutrino-preset-node/index.js

@ -25,6 +25,7 @@ module.exports = neutrino => {
neutrino.use(compile, {
include: [SRC, TEST],
babel: {
plugins: [require.resolve('babel-plugin-dynamic-import-node')],
presets: [
[require.resolve('babel-preset-env'), {
modules: false,

1
packages/neutrino-preset-node/package.json

@ -15,6 +15,7 @@
"homepage": "https://neutrino.js.org",
"bugs": "https://github.com/mozilla-neutrino/neutrino-dev/issues",
"dependencies": {
"babel-plugin-dynamic-import-node": "^1.0.0",
"babel-preset-env": "^1.1.10",
"exports-loader": "^0.6.4",
"imports-loader": "^0.7.1",

18
packages/neutrino-preset-node/yarn.lock

@ -124,10 +124,22 @@ babel-plugin-check-es2015-constants@^6.3.13:
dependencies:
babel-runtime "^6.22.0"
babel-plugin-dynamic-import-node@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-1.0.0.tgz#9f1ded4db2c53598f5d906b37774485d7e73f0eb"
dependencies:
babel-plugin-syntax-dynamic-import "^6.18.0"
babel-template "^6.16.0"
in-publish "^2.0.0"
babel-plugin-syntax-async-functions@^6.8.0:
version "6.13.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"
babel-plugin-syntax-dynamic-import@^6.18.0:
version "6.18.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da"
babel-plugin-syntax-exponentiation-operator@^6.8.0:
version "6.13.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de"
@ -375,7 +387,7 @@ babel-runtime@^6.18.0, babel-runtime@^6.22.0:
core-js "^2.4.0"
regenerator-runtime "^0.10.0"
babel-template@^6.22.0:
babel-template@^6.16.0, babel-template@^6.22.0:
version "6.23.0"
resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.23.0.tgz#04d4f270adbb3aa704a8143ae26faa529238e638"
dependencies:
@ -487,6 +499,10 @@ imports-loader@^0.7.1:
loader-utils "^1.0.2"
source-map "^0.5.6"
in-publish@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/in-publish/-/in-publish-2.0.0.tgz#e20ff5e3a2afc2690320b6dc552682a9c7fadf51"
invariant@^2.2.0, invariant@^2.2.2:
version "2.2.2"
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360"

Loading…
Cancel
Save