webpack-loader-clarity 1.4.0 → 1.4.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/index.cjs +1 -1
- package/package.json +2 -2
package/index.cjs
CHANGED
|
@@ -43,7 +43,7 @@ module.exports = function clarityLoader(source) {
|
|
|
43
43
|
let code = made.code;
|
|
44
44
|
// 'import': the component's CSS becomes a module of its own, named `<file>.css`, so the rules you wrote for .css files take it from here
|
|
45
45
|
if (made.css && css === 'import') code += `\nimport ${JSON.stringify(`${file}.css!=!${CSS_LOADER}!${file}?clarity-style`)};\n`;
|
|
46
|
-
else if (css === 'inject') code += injectCss(made.css, file);
|
|
46
|
+
else if (css === 'inject') code += injectCss(made.css, made.scopeKey ?? file);
|
|
47
47
|
if (types && made.dts) this.emitFile(path.relative(this.rootContext, file).replace(/\\/g, '/').replace(/^(\.\.\/)+/, '') + '.d.ts', made.dts);
|
|
48
48
|
done(null, code, sourceMap ? made.map ?? undefined : undefined);
|
|
49
49
|
}, done);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webpack-loader-clarity",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Webpack 5 loader for Clarity.js .clarity components: compiles them, handles their CSS, and can turn a pages folder into routes",
|
|
5
5
|
"main": "index.cjs",
|
|
6
6
|
"files": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"homepage": "https://clarity-js.com/docs/bundlers",
|
|
43
43
|
"repository": {
|
|
44
44
|
"type": "git",
|
|
45
|
-
"url": "git+https://
|
|
45
|
+
"url": "git+https://github.com/ozdemirsarman/clarity.js.git",
|
|
46
46
|
"directory": "packages/webpack-loader-clarity"
|
|
47
47
|
}
|
|
48
48
|
}
|