@rollup/plugin-commonjs 17.1.0 → 18.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 +62 -0
- package/dist/index.es.js +69 -39
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +69 -39
- package/dist/index.js.map +1 -1
- package/package.json +6 -7
- package/types/index.d.ts +14 -1
package/types/index.d.ts
CHANGED
|
@@ -35,10 +35,23 @@ interface RollupCommonJSOptions {
|
|
|
35
35
|
*/
|
|
36
36
|
ignoreGlobal?: boolean;
|
|
37
37
|
/**
|
|
38
|
-
* If false, skips source map generation for CommonJS modules. This will
|
|
38
|
+
* If false, skips source map generation for CommonJS modules. This will
|
|
39
|
+
* improve performance.
|
|
39
40
|
* @default true
|
|
40
41
|
*/
|
|
41
42
|
sourceMap?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Some `require` calls cannot be resolved statically to be translated to
|
|
45
|
+
* imports.
|
|
46
|
+
* When this option is set to `false`, the generated code will either
|
|
47
|
+
* directly throw an error when such a call is encountered or, when
|
|
48
|
+
* `dynamicRequireTargets` is used, when such a call cannot be resolved with a
|
|
49
|
+
* configured dynamic require target.
|
|
50
|
+
* Setting this option to `true` will instead leave the `require` call in the
|
|
51
|
+
* code or use it as a fallback for `dynamicRequireTargets`.
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
ignoreDynamicRequires?: boolean;
|
|
42
55
|
/**
|
|
43
56
|
* Instructs the plugin whether to enable mixed module transformations. This
|
|
44
57
|
* is useful in scenarios with modules that contain a mix of ES `import`
|