rollup-plugin-lib-style 2.0.0 → 2.0.1
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 -2
- package/lib/index.js +1 -2
- package/package.json +1 -1
package/lib/index.es.js
CHANGED
|
@@ -50,8 +50,7 @@ const postCssLoader = async ({code, fiePath, options}) => {
|
|
|
50
50
|
const postCssPluginsWithCssModules = [
|
|
51
51
|
postcssModules({
|
|
52
52
|
generateScopedName: (name, filename, css) => {
|
|
53
|
-
|
|
54
|
-
return newClassName
|
|
53
|
+
return isInNodeModules || isGlobalStyle ? name : classNamePrefix + replaceFormat(scopedName, name, css)
|
|
55
54
|
},
|
|
56
55
|
getJSON: (cssFileName, json) => (modulesExported[cssFileName] = json),
|
|
57
56
|
}),
|
package/lib/index.js
CHANGED
|
@@ -52,8 +52,7 @@ const postCssLoader = async ({code, fiePath, options}) => {
|
|
|
52
52
|
const postCssPluginsWithCssModules = [
|
|
53
53
|
postcssModules({
|
|
54
54
|
generateScopedName: (name, filename, css) => {
|
|
55
|
-
|
|
56
|
-
return newClassName
|
|
55
|
+
return isInNodeModules || isGlobalStyle ? name : classNamePrefix + replaceFormat(scopedName, name, css)
|
|
57
56
|
},
|
|
58
57
|
getJSON: (cssFileName, json) => (modulesExported[cssFileName] = json),
|
|
59
58
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup-plugin-lib-style",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
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",
|