@rollup/plugin-commonjs 21.0.0 → 21.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/index.es.js +12 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +15 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -586,7 +586,7 @@ function getResolveId(extensions) {
|
|
|
586
586
|
return undefined;
|
|
587
587
|
}
|
|
588
588
|
|
|
589
|
-
return function resolveId(importee, rawImporter) {
|
|
589
|
+
return function resolveId(importee, rawImporter, resolveOptions) {
|
|
590
590
|
if (isWrappedId(importee, MODULE_SUFFIX) || isWrappedId(importee, EXPORTS_SUFFIX)) {
|
|
591
591
|
return importee;
|
|
592
592
|
}
|
|
@@ -629,10 +629,16 @@ function getResolveId(extensions) {
|
|
|
629
629
|
return null;
|
|
630
630
|
}
|
|
631
631
|
|
|
632
|
-
return this.resolve(
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
632
|
+
return this.resolve(
|
|
633
|
+
importee,
|
|
634
|
+
importer,
|
|
635
|
+
Object.assign({}, resolveOptions, {
|
|
636
|
+
skipSelf: true,
|
|
637
|
+
custom: Object.assign({}, resolveOptions.custom, {
|
|
638
|
+
'node-resolve': { isRequire: isProxyModule || isRequiredModule }
|
|
639
|
+
})
|
|
640
|
+
})
|
|
641
|
+
).then((resolved) => {
|
|
636
642
|
if (!resolved) {
|
|
637
643
|
resolved = resolveExtensions(importee, importer);
|
|
638
644
|
}
|
|
@@ -1900,5 +1906,5 @@ function commonjs(options = {}) {
|
|
|
1900
1906
|
};
|
|
1901
1907
|
}
|
|
1902
1908
|
|
|
1903
|
-
export default
|
|
1909
|
+
export { commonjs as default };
|
|
1904
1910
|
//# sourceMappingURL=index.es.js.map
|