@lynx-js/css-extract-webpack-plugin-canary 0.9.0 → 0.10.0-canary-20260717-08dd06ae

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,22 @@
1
1
  # @lynx-js/css-extract-webpack-plugin
2
2
 
3
+ ## 0.10.0-canary-20260717031202-08dd06ae3a812155fa82d8d0356e5b7ae5395155
4
+
5
+ ### Minor Changes
6
+
7
+ - Rename the lazy bundle output directory from `async/` to `lazy-bundle/`. ([#2993](https://github.com/lynx-family/lynx-stack/pull/2993))
8
+
9
+ Lazy bundles can now also be loaded synchronously with `import(..., { with: { mode: 'sync' } })`, so the `async/` directory name no longer matches how they are used. The default `lazyBundleFilename` becomes `lazy-bundle/[name].[fullhash].bundle`, and the intermediate outputs move from `.rspeedy/async/<name>/` to `.rspeedy/lazy-bundle/<name>/` accordingly.
10
+
11
+ Update deployment scripts that reference the `dist/async/` directory to use `dist/lazy-bundle/` instead.
12
+
13
+ `@lynx-js/css-extract-webpack-plugin` requires `@lynx-js/template-webpack-plugin` `^0.14.0`.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [[`08dd06a`](https://github.com/lynx-family/lynx-stack/commit/08dd06ae3a812155fa82d8d0356e5b7ae5395155)]:
18
+ - @lynx-js/template-webpack-plugin@0.14.0-canary-20260717031202-08dd06ae3a812155fa82d8d0356e5b7ae5395155
19
+
3
20
  ## 0.9.0
4
21
 
5
22
  ### Minor Changes
@@ -96,7 +96,7 @@ class CssExtractRspackPluginImpl {
96
96
  this.name = 'CssExtractRspackPlugin';
97
97
  this.hash = null;
98
98
  this.hotUpdateFiles = new Map();
99
- // Route a lazy bundle's CSS chunk to `.rspeedy/async/<name>/<layer>.css`,
99
+ // Route a lazy bundle's CSS chunk to `.rspeedy/lazy-bundle/<name>/<layer>.css`,
100
100
  // co-located with the bundle's other intermediate outputs. Non-lazy
101
101
  // chunks keep the configured template.
102
102
  let currentCompilation;
@@ -111,7 +111,7 @@ class CssExtractRspackPluginImpl {
111
111
  if (currentCompilation !== undefined && id !== undefined && id !== null) {
112
112
  const layoutName = LynxTemplatePlugin.getAsyncChunkLayoutName(currentCompilation, id);
113
113
  if (layoutName !== undefined) {
114
- return `.rspeedy/async/${layoutName}.css`;
114
+ return `.rspeedy/lazy-bundle/${layoutName}.css`;
115
115
  }
116
116
  }
117
117
  return userChunkFilename;
@@ -219,7 +219,7 @@ class CssExtractRspackPluginImpl {
219
219
  : undefined;
220
220
  const path = layoutName === undefined
221
221
  ? compilation.getAssetPathWithInfo(options.chunkFilename ?? '.rspeedy/async/[name]/[name].css', { chunk: c }).path
222
- : `.rspeedy/async/${layoutName}.css`;
222
+ : `.rspeedy/lazy-bundle/${layoutName}.css`;
223
223
  return [String(c.name ?? c.id), path];
224
224
  });
225
225
  const { path } = compilation.getPathWithInfo(options.filename ?? '[name].css', { chunk });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/css-extract-webpack-plugin-canary",
3
- "version": "0.9.0",
3
+ "version": "0.10.0-canary-20260717-08dd06ae",
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",
@@ -46,9 +46,9 @@
46
46
  "@rstest/core": "0.11.0",
47
47
  "css-loader": "^7.1.4",
48
48
  "sass-loader": "^16.0.7",
49
- "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.13.0",
50
- "@lynx-js/test-tools": "0.0.0",
51
- "@lynx-js/css-serializer": "npm:@lynx-js/css-serializer-canary@0.1.6"
49
+ "@lynx-js/css-serializer": "npm:@lynx-js/css-serializer-canary@0.1.6",
50
+ "@lynx-js/template-webpack-plugin": "npm:@lynx-js/template-webpack-plugin-canary@0.14.0-canary-20260717-08dd06ae",
51
+ "@lynx-js/test-tools": "0.0.0"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@lynx-js/template-webpack-plugin": "*"