@rollup/plugin-dynamic-import-vars
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -183,7 +183,10 @@ 'use strict'; | ||
if (errorWhenNoFilesFound && paths.length === 0) { | ||
this.error( | ||
new Error( | ||
`No files found in ${glob} when trying to dynamically load concatted string from ${id}` | ||
) | ||
const error = new Error( | ||
`No files found in ${glob} when trying to dynamically load concatted string from ${id}` | ||
); | ||
if (warnOnError) { | ||
this.warn(error); | ||
} else { | ||
this.error(error); | ||
} | ||
} | ||
@@ -190,0 +193,0 @@ |
@@ -183,7 +183,10 @@ 'use strict'; | ||
if (errorWhenNoFilesFound && paths.length === 0) { | ||
this.error( | ||
new Error( | ||
`No files found in ${glob} when trying to dynamically load concatted string from ${id}` | ||
) | ||
const error = new Error( | ||
`No files found in ${glob} when trying to dynamically load concatted string from ${id}` | ||
); | ||
if (warnOnError) { | ||
this.warn(error); | ||
} else { | ||
this.error(error); | ||
} | ||
} | ||
@@ -190,0 +193,0 @@ |
@@ -179,7 +179,10 @@ import path from 'path'; | ||
if (errorWhenNoFilesFound && paths.length === 0) { | ||
this.error( | ||
new Error( | ||
`No files found in ${glob} when trying to dynamically load concatted string from ${id}` | ||
) | ||
const error = new Error( | ||
`No files found in ${glob} when trying to dynamically load concatted string from ${id}` | ||
); | ||
if (warnOnError) { | ||
this.warn(error); | ||
} else { | ||
this.error(error); | ||
} | ||
} | ||
@@ -186,0 +189,0 @@ |
{ | ||
"name": "@rollup/plugin-dynamic-import-vars", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -71,2 +71,4 @@ [npm]: https://img.shields.io/npm/v/@rollup/plugin-dynamic-import-vars | ||
⚠️ _Important:_ Enabling this option when `warnOnError` is set to `true` will result in a warning and _not_ an error | ||
#### `warnOnError` | ||
@@ -73,0 +75,0 @@ |
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
33949
665
233