@rollup/plugin-commonjs 21.0.1 → 21.1.0
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 +24 -0
- package/README.md +1 -1
- package/dist/index.es.js +34 -30
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +34 -30
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/types/index.d.ts +8 -0
package/types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { FilterPattern } from '@rollup/pluginutils';
|
|
|
2
2
|
import { Plugin } from 'rollup';
|
|
3
3
|
|
|
4
4
|
type RequireReturnsDefaultOption = boolean | 'auto' | 'preferred' | 'namespace';
|
|
5
|
+
type DefaultIsModuleExportsOption = boolean | 'auto';
|
|
5
6
|
|
|
6
7
|
interface RollupCommonJSOptions {
|
|
7
8
|
/**
|
|
@@ -161,6 +162,13 @@ interface RollupCommonJSOptions {
|
|
|
161
162
|
requireReturnsDefault?:
|
|
162
163
|
| RequireReturnsDefaultOption
|
|
163
164
|
| ((id: string) => RequireReturnsDefaultOption);
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @default "auto"
|
|
168
|
+
*/
|
|
169
|
+
defaultIsModuleExports?:
|
|
170
|
+
| DefaultIsModuleExportsOption
|
|
171
|
+
| ((id: string) => DefaultIsModuleExportsOption);
|
|
164
172
|
/**
|
|
165
173
|
* Some modules contain dynamic `require` calls, or require modules that
|
|
166
174
|
* contain circular dependencies, which are not handled well by static
|