babel-plugin-dynamic-import-node
Advanced tools
Comparing version 2.0.0 to 2.1.0
## Unreleased | ||
## v2.1.0 | ||
- [New] add `noInterop` option (#57) | ||
- [Docs] Fix typo "correct" -> "correctly" in readme (#55) | ||
- [Dev Deps] update `airbnb-js-shims`, `babel-eslint`, `babel-preset-airbnb`, `eslint`, `eslint-config-airbnb-base`, `eslint-plugin-import`, `safe-publish-latest` | ||
## v2.0.0 | ||
@@ -4,0 +9,0 @@ - [Breaking] always return a module namespace object (#52, #47) |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -30,4 +32,9 @@ value: true | ||
var requireCall = t.callExpression(t.identifier('require'), [].concat(SOURCE)); | ||
var _opts$noInterop = this.opts.noInterop, | ||
noInterop = _opts$noInterop === undefined ? false : _opts$noInterop; | ||
var MODULE = noInterop === true ? requireCall : t.callExpression(this.addHelper('interopRequireWildcard'), [requireCall]); | ||
var newImport = buildImport({ | ||
MODULE: t.callExpression(this.addHelper('interopRequireWildcard'), [requireCall]) | ||
MODULE: MODULE | ||
}); | ||
@@ -34,0 +41,0 @@ path.parentPath.replaceWith(newImport); |
{ | ||
"name": "babel-plugin-dynamic-import-node", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Babel plugin to transpile import() to a deferred require(), for node", | ||
@@ -45,18 +45,18 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"airbnb-js-shims": "^2.0.0", | ||
"airbnb-js-shims": "^2.1.0", | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.3", | ||
"babel-eslint": "^8.2.5", | ||
"babel-eslint": "^9.0.0", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-plugin-transform-es2015-template-literals": "^6.22.0", | ||
"babel-plugin-transform-replace-object-assign": "^1.0.0", | ||
"babel-preset-airbnb": "^2.5.1", | ||
"babel-preset-airbnb": "^2.5.3", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-register": "^6.26.0", | ||
"eslint": "^4.19.1", | ||
"eslint-config-airbnb-base": "^13.0.0", | ||
"eslint-plugin-import": "^2.13.0", | ||
"eslint": "^5.4.0", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"in-publish": "^2.0.0", | ||
"rimraf": "^2.6.2", | ||
"safe-publish-latest": "^1.1.1", | ||
"safe-publish-latest": "^1.1.2", | ||
"tape": "^4.9.1" | ||
@@ -63,0 +63,0 @@ }, |
@@ -5,3 +5,3 @@ # babel-plugin-dynamic-import-node | ||
**NOTE:** Babylon >= v6.12.0 is required to correct parse dynamic imports. | ||
**NOTE:** Babylon >= v6.12.0 is required to correctly parse dynamic imports. | ||
@@ -8,0 +8,0 @@ ## Installation |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10386
41