@lynx-js/css-extract-webpack-plugin-canary 0.7.1 → 0.7.2-canary-20260528-d5162d28

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,16 @@
1
1
  # @lynx-js/css-extract-webpack-plugin
2
2
 
3
+ ## 0.7.2-canary-20260528060930-d5162d283dffaec5e5f9d74bab3e0e92e892d13a
4
+
5
+ ### Patch Changes
6
+
7
+ - Prefix Lynx runtime module names with `webpack/runtime/` (e.g. `Lynx async chunks` → `webpack/runtime/lynx async chunks`), matching the path-structured naming of the bundler's built-in runtime modules. The previous bare names had no path segment, so when they appear as a source-map `sources` entry under a `file://` module-filename template they collapsed into an invalid URL authority (the space-containing name became the host) and broke `SourceMapConsumer` parsing. ([#2642](https://github.com/lynx-family/lynx-stack/pull/2642))
8
+
9
+ - Widen peer ranges to admit the new minor versions of `@lynx-js/template-webpack-plugin` (^0.12.0) and `@lynx-js/rspeedy` (^0.15.0) shipping with the unified `debug-metadata.json` feature. ([#2642](https://github.com/lynx-family/lynx-stack/pull/2642))
10
+
11
+ - Updated dependencies [[`409594b`](https://github.com/lynx-family/lynx-stack/commit/409594b9c51bb0c13f01c7d3f16949b27ebfdced), [`d8be1ee`](https://github.com/lynx-family/lynx-stack/commit/d8be1ee6819c6bd43e4251e33ebb91d54aad35fd), [`409594b`](https://github.com/lynx-family/lynx-stack/commit/409594b9c51bb0c13f01c7d3f16949b27ebfdced)]:
12
+ - @lynx-js/template-webpack-plugin@0.12.0-canary-20260528060930-d5162d283dffaec5e5f9d74bab3e0e92e892d13a
13
+
3
14
  ## 0.7.1
4
15
 
5
16
  ### Patch Changes
@@ -129,10 +129,12 @@ class CssExtractRspackPluginImpl {
129
129
  const { compilerOptions: {
130
130
  // remove the `templateDebugUrl` to avoid "emit different content to the same filename" error while chunk splitting is enabled, see #1481
131
131
  templateDebugUrl, ...restCompilerOptions }, } = args.finalEncodeOptions;
132
+ const baseEncodeOptions = { ...args.finalEncodeOptions };
133
+ baseEncodeOptions.compilerOptions = restCompilerOptions;
134
+ delete baseEncodeOptions.elementTemplate;
132
135
  const { buffer } = await hooks.encode.promise({
133
136
  encodeOptions: {
134
- ...args.finalEncodeOptions,
135
- compilerOptions: restCompilerOptions,
137
+ ...baseEncodeOptions,
136
138
  css,
137
139
  lepusCode: {
138
140
  root: undefined,
@@ -167,7 +169,7 @@ class CssExtractRspackPluginImpl {
167
169
  const { RuntimeGlobals, RuntimeModule } = compiler.webpack;
168
170
  class CSSHotUpdateRuntimeModule extends RuntimeModule {
169
171
  constructor(hash, hotUpdateFiles) {
170
- super('lynx css hot update');
172
+ super('webpack/runtime/lynx css hot update');
171
173
  this.hash = hash;
172
174
  this.hotUpdateFiles = hotUpdateFiles;
173
175
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/css-extract-webpack-plugin-canary",
3
- "version": "0.7.1",
3
+ "version": "0.7.2-canary-20260528-d5162d28",
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",
@@ -45,14 +45,14 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@microsoft/api-extractor": "7.58.2",
48
- "@rspack/core": "1.7.9",
48
+ "@rspack/core": "2.0.3",
49
49
  "css-loader": "^7.1.4",
50
50
  "sass-loader": "^16.0.7",
51
51
  "webpack": "^5.105.2",
52
- "@lynx-js/css-serializer": "npm:@lynx-js/css-serializer-canary@0.1.6",
53
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.11.0",
52
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.12.0-canary-20260528-d5162d28",
54
53
  "@lynx-js/test-tools": "0.0.0",
55
- "@lynx-js/vitest-setup": "0.0.0"
54
+ "@lynx-js/vitest-setup": "0.0.0",
55
+ "@lynx-js/css-serializer": "npm:@lynx-js/css-serializer-canary@0.1.6"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "@lynx-js/template-webpack-plugin": "*"