@rollup/plugin-commonjs
Advanced tools
Comparing version 23.0.3 to 23.0.4
{ | ||
"name": "@rollup/plugin-commonjs", | ||
"version": "23.0.3", | ||
"version": "23.0.4", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -1,3 +0,3 @@ | ||
import { FilterPattern } from '@rollup/pluginutils'; | ||
import { Plugin } from 'rollup'; | ||
import type { FilterPattern } from '@rollup/pluginutils'; | ||
import type { Plugin } from 'rollup'; | ||
@@ -112,5 +112,5 @@ type RequireReturnsDefaultOption = boolean | 'auto' | 'preferred' | 'namespace'; | ||
* Due to the conversion of `require` to a static `import` - the call is | ||
* hoisted to the top of the file, outside of the `try-catch` clause. | ||
* hoisted to the top of the file, outside the `try-catch` clause. | ||
* | ||
* - `true`: All `require` calls inside a `try` will be left unconverted. | ||
* - `true`: Default. All `require` calls inside a `try` will be left unconverted. | ||
* - `false`: All `require` calls inside a `try` will be converted as if the | ||
@@ -120,6 +120,6 @@ * `try-catch` clause is not there. | ||
* - `string[]`: Pass an array containing the IDs to left unconverted. | ||
* - `((id: string) => boolean|'remove')`: Pass a function that control | ||
* - `((id: string) => boolean|'remove')`: Pass a function that controls | ||
* individual IDs. | ||
* | ||
* @default false | ||
* @default true | ||
*/ | ||
@@ -138,3 +138,3 @@ ignoreTryCatch?: | ||
* | ||
* If you set `esmExternals` to `true`, this plugins assumes that all | ||
* If you set `esmExternals` to `true`, this plugin assumes that all | ||
* external dependencies are ES modules and respect the | ||
@@ -145,4 +145,4 @@ * `requireReturnsDefault` option. If that option is not set, they will be | ||
* You can also supply an array of ids to be treated as ES modules, or a | ||
* function that will be passed each external id to determine if it is an ES | ||
* module. | ||
* function that will be passed each external id to determine whether it is | ||
* an ES module. | ||
* @default false | ||
@@ -165,3 +165,3 @@ */ | ||
* | ||
* However there are some situations where this may not be desired. | ||
* However, there are some situations where this may not be desired. | ||
* For these situations, you can change Rollup's behaviour either globally or | ||
@@ -216,3 +216,3 @@ * per module. To change it globally, set the `requireReturnsDefault` option | ||
* imports. Including those modules as `dynamicRequireTargets` will simulate a | ||
* CommonJS (NodeJS-like) environment for them with support for dynamic | ||
* CommonJS (NodeJS-like) environment for them with support for dynamic | ||
* dependencies. It also enables `strictRequires` for those modules. | ||
@@ -231,3 +231,3 @@ * | ||
* may lead to unnecessarily long paths in the generated code and may expose directory names on your machine like your | ||
* home directory name. By default it uses the current working directory. | ||
* home directory name. By default, it uses the current working directory. | ||
*/ | ||
@@ -234,0 +234,0 @@ dynamicRequireRoot?: string; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
178299