@lynx-js/css-extract-webpack-plugin 0.6.1 → 0.6.3

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,17 @@
1
1
  # @lynx-js/css-extract-webpack-plugin
2
2
 
3
+ ## 0.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Supports `@lynx-js/template-webpack-plugin` 0.9.0. ([#1705](https://github.com/lynx-family/lynx-stack/pull/1705))
8
+
9
+ ## 0.6.2
10
+
11
+ ### Patch Changes
12
+
13
+ - Fix "emit different content to the same filename" error ([#1482](https://github.com/lynx-family/lynx-stack/pull/1482))
14
+
3
15
  ## 0.6.1
4
16
 
5
17
  ### Patch Changes
@@ -108,9 +108,13 @@ class CssExtractRspackPluginImpl {
108
108
  return acc;
109
109
  }, {});
110
110
  try {
111
+ const { compilerOptions: {
112
+ // remove the `templateDebugUrl` to avoid "emit different content to the same filename" error while chunk splitting is enabled, see #1481
113
+ templateDebugUrl, ...restCompilerOptions }, } = args.finalEncodeOptions;
111
114
  const { buffer } = await hooks.encode.promise({
112
115
  encodeOptions: {
113
116
  ...args.finalEncodeOptions,
117
+ compilerOptions: restCompilerOptions,
114
118
  css,
115
119
  lepusCode: {
116
120
  root: undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/css-extract-webpack-plugin",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
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",
@@ -41,21 +41,21 @@
41
41
  "README.md"
42
42
  ],
43
43
  "dependencies": {
44
- "mini-css-extract-plugin": "^2.9.2"
44
+ "mini-css-extract-plugin": "^2.9.4"
45
45
  },
46
46
  "devDependencies": {
47
- "@microsoft/api-extractor": "7.52.10",
48
- "@rspack/core": "1.4.11",
47
+ "@microsoft/api-extractor": "7.52.13",
48
+ "@rspack/core": "1.5.2",
49
49
  "css-loader": "^7.1.2",
50
50
  "sass-loader": "^16.0.5",
51
- "webpack": "^5.99.9",
51
+ "webpack": "^5.101.3",
52
52
  "@lynx-js/css-serializer": "0.1.3",
53
- "@lynx-js/template-webpack-plugin": "0.8.3",
53
+ "@lynx-js/template-webpack-plugin": "0.9.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.8.0"
58
+ "@lynx-js/template-webpack-plugin": "^0.9.0"
59
59
  },
60
60
  "engines": {
61
61
  "node": ">=18"