@lynx-js/css-extract-webpack-plugin 0.5.3 → 0.5.4
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @lynx-js/css-extract-webpack-plugin
|
|
2
2
|
|
|
3
|
+
## 0.5.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Support `@lynx-js/template-webpack-plugin` v0.7.0. ([#880](https://github.com/lynx-family/lynx-stack/pull/880))
|
|
8
|
+
|
|
9
|
+
- Support Rspack v1.3.11. ([#866](https://github.com/lynx-family/lynx-stack/pull/866))
|
|
10
|
+
|
|
3
11
|
## 0.5.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -26,6 +26,14 @@ interface CssExtractRspackPluginOptions extends ExternalCssExtractRspackPluginOp
|
|
|
26
26
|
* plugins passed to parser
|
|
27
27
|
*/
|
|
28
28
|
cssPlugins: Parameters<typeof LynxTemplatePlugin.convertCSSChunksToMap>[1];
|
|
29
|
+
/**
|
|
30
|
+
* The name of non-initial CSS chunk files
|
|
31
|
+
*/
|
|
32
|
+
chunkFilename?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The name of each output bundle.
|
|
35
|
+
*/
|
|
36
|
+
filename?: string;
|
|
29
37
|
}
|
|
30
38
|
/**
|
|
31
39
|
* @public
|
|
@@ -157,7 +157,7 @@ ${RuntimeGlobals.require}.cssHotUpdateList = ${cssHotUpdateList ? JSON.stringify
|
|
|
157
157
|
}
|
|
158
158
|
// TODO: sourcemap
|
|
159
159
|
const content = source.source().toString('utf-8');
|
|
160
|
-
const { cssMap } = LynxTemplatePlugin.convertCSSChunksToMap([content], options.cssPlugins);
|
|
160
|
+
const { cssMap } = LynxTemplatePlugin.convertCSSChunksToMap([content], options.cssPlugins, options.enableCSSSelector);
|
|
161
161
|
const cssDeps = Object.entries(cssMap).reduce((acc, [key, value]) => {
|
|
162
162
|
const importRuleNodes = value.filter((node) => node.type === 'ImportRule');
|
|
163
163
|
acc[key] = importRuleNodes.map(({ href }) => href);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/css-extract-webpack-plugin",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "This plugin extracts CSS into separate files. It creates a CSS file per JS file which contains CSS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -44,18 +44,18 @@
|
|
|
44
44
|
"mini-css-extract-plugin": "^2.9.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@microsoft/api-extractor": "7.52.
|
|
48
|
-
"@rspack/core": "1.3.
|
|
47
|
+
"@microsoft/api-extractor": "7.52.8",
|
|
48
|
+
"@rspack/core": "1.3.11",
|
|
49
49
|
"css-loader": "^7.1.2",
|
|
50
50
|
"sass-loader": "^16.0.5",
|
|
51
|
-
"webpack": "^5.
|
|
51
|
+
"webpack": "^5.99.9",
|
|
52
52
|
"@lynx-js/css-serializer": "0.1.2",
|
|
53
|
-
"@lynx-js/template-webpack-plugin": "0.
|
|
53
|
+
"@lynx-js/template-webpack-plugin": "0.7.0",
|
|
54
54
|
"@lynx-js/test-tools": "0.0.0",
|
|
55
55
|
"@lynx-js/vitest-setup": "0.0.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@lynx-js/template-webpack-plugin": "^0.5.0 || ^0.6.0"
|
|
58
|
+
"@lynx-js/template-webpack-plugin": "^0.5.0 || ^0.6.0 || ^0.7.0"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=18"
|