@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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @rollup/plugin-commonjs ChangeLog
2
2
 
3
+ ## v21.0.1
4
+
5
+ _2021-10-19_
6
+
7
+ ### Bugfixes
8
+
9
+ - fix: pass on isEntry and custom resolve options (#1018)
10
+
3
11
  ## v21.0.0
4
12
 
5
13
  _2021-10-01_
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(importee, importer, {
633
- skipSelf: true,
634
- custom: { 'node-resolve': { isRequire: isProxyModule || isRequiredModule } }
635
- }).then((resolved) => {
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 commonjs;
1909
+ export { commonjs as default };
1904
1910
  //# sourceMappingURL=index.es.js.map