rollup-plugin-lib-style 2.4.0 → 2.4.2
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/lib/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.es.js
CHANGED
|
@@ -209,7 +209,7 @@ const libStylePlugin = (options = {}) => {
|
|
|
209
209
|
|
|
210
210
|
const onwarn = (warning, warn) => {
|
|
211
211
|
if (warning.code === "UNRESOLVED_IMPORT" && warning.message.includes(MAGIC_PATH)) return
|
|
212
|
-
warn(warning);
|
|
212
|
+
if (typeof warn === "function") warn(warning);
|
|
213
213
|
};
|
|
214
214
|
|
|
215
215
|
export { libStylePlugin, onwarn };
|
package/lib/index.js
CHANGED
|
@@ -211,7 +211,7 @@ const libStylePlugin = (options = {}) => {
|
|
|
211
211
|
|
|
212
212
|
const onwarn = (warning, warn) => {
|
|
213
213
|
if (warning.code === "UNRESOLVED_IMPORT" && warning.message.includes(MAGIC_PATH)) return
|
|
214
|
-
warn(warning);
|
|
214
|
+
if (typeof warn === "function") warn(warning);
|
|
215
215
|
};
|
|
216
216
|
|
|
217
217
|
exports.libStylePlugin = libStylePlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup-plugin-lib-style",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"description": "A Rollup plugin that converts CSS and extensions for CSS into CSS modules and imports the generated CSS files",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.es.js",
|