babel-plugin-namespace-amd-define
Advanced tools
Comparing version 2.19.4 to 2.20.0
{ | ||
"author": "Liferay Frontend Infrastructure Team <pt-frontend-infrastructure@liferay.com>", | ||
"dependencies": { | ||
"liferay-npm-build-tools-common": "2.19.4" | ||
"liferay-npm-build-tools-common": "2.20.0" | ||
}, | ||
@@ -19,4 +19,4 @@ "description": "A Babel plugin to namespace (prefix) AMD define() calls.", | ||
}, | ||
"version": "2.19.4", | ||
"gitHead": "d341f385c91a7d50168a6ce8be978d2f03f6bedc" | ||
"version": "2.20.0", | ||
"gitHead": "c346146c8c8e6f7c12356f68dc7153efc6445e89" | ||
} |
@@ -54,6 +54,4 @@ # babel-plugin-namespace-amd-define | ||
This module adds a prefix to any AMD `define()` call that it finds. The prefix | ||
is specified with the `namespace` option and a period is inserted between the | ||
namespace string and the `define()` call. | ||
This module adds a prefix to any AMD `define()` call that it finds. The prefix is specified with the `namespace` option and a period is inserted between the namespace string and the `define()` call. | ||
By default, the `namespace` option is set to `Liferay.Loader`. |
@@ -65,2 +65,3 @@ /** | ||
it('namespaces unqualified define calls that are wrapped', () => { | ||
// eg. the css-loader produces wrappers like this. | ||
@@ -67,0 +68,0 @@ |
@@ -52,3 +52,4 @@ /** | ||
} | ||
} else { | ||
} | ||
else { | ||
extraNamespaceCount++; | ||
@@ -64,2 +65,3 @@ } | ||
exit(path, state) { | ||
// We must traverse the AST again because the third party | ||
@@ -66,0 +68,0 @@ // transform-es2015-modules-amd emits its define() call after |
12531
315
57
+ Addedbabel-plugin-add-module-metadata@2.20.0(transitive)
+ Addedbabel-plugin-alias-modules@2.20.0(transitive)
+ Addedbabel-plugin-name-amd-modules@2.20.0(transitive)
+ Addedbabel-plugin-namespace-modules@2.20.0(transitive)
+ Addedbabel-plugin-normalize-requires@2.20.0(transitive)
+ Addedbabel-plugin-wrap-modules-amd@2.20.0(transitive)
+ Addedbabel-preset-liferay-standard@2.20.0(transitive)
+ Addedliferay-npm-build-tools-common@2.20.0(transitive)
+ Addedliferay-npm-bundler-plugin-exclude-imports@2.20.0(transitive)
+ Addedliferay-npm-bundler-plugin-inject-imports-dependencies@2.20.0(transitive)
+ Addedliferay-npm-bundler-plugin-inject-peer-dependencies@2.20.0(transitive)
+ Addedliferay-npm-bundler-plugin-namespace-packages@2.20.0(transitive)
+ Addedliferay-npm-bundler-plugin-replace-browser-modules@2.20.0(transitive)
+ Addedliferay-npm-bundler-plugin-resolve-linked-dependencies@2.20.0(transitive)
+ Addedliferay-npm-bundler-preset-standard@2.20.0(transitive)
- Removedbabel-plugin-add-module-metadata@2.19.4(transitive)
- Removedbabel-plugin-alias-modules@2.19.4(transitive)
- Removedbabel-plugin-name-amd-modules@2.19.4(transitive)
- Removedbabel-plugin-namespace-modules@2.19.4(transitive)
- Removedbabel-plugin-normalize-requires@2.19.4(transitive)
- Removedbabel-plugin-wrap-modules-amd@2.19.4(transitive)
- Removedbabel-preset-liferay-standard@2.19.4(transitive)
- Removedliferay-npm-build-tools-common@2.19.4(transitive)
- Removedliferay-npm-bundler-plugin-exclude-imports@2.19.4(transitive)
- Removedliferay-npm-bundler-plugin-inject-imports-dependencies@2.19.4(transitive)
- Removedliferay-npm-bundler-plugin-inject-peer-dependencies@2.19.4(transitive)
- Removedliferay-npm-bundler-plugin-namespace-packages@2.19.4(transitive)
- Removedliferay-npm-bundler-plugin-replace-browser-modules@2.19.4(transitive)
- Removedliferay-npm-bundler-plugin-resolve-linked-dependencies@2.19.4(transitive)
- Removedliferay-npm-bundler-preset-standard@2.19.4(transitive)