@lynx-js/rspeedy-canary 0.11.3-canary-20250919-8c33d3e1 → 0.11.3-canary-20250919-a9fe1138
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 +3 -1
- package/dist/1~src_cli_build_ts.js +4 -1
- package/dist/1~src_cli_dev_ts.js +4 -1
- package/dist/1~src_cli_inspect_ts.js +4 -1
- package/dist/1~src_cli_preview_ts.js +4 -1
- package/dist/index.d.ts +44 -0
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
-
## 0.11.3-canary-
|
|
3
|
+
## 0.11.3-canary-20250919120551-a9fe1138d225102d5b273653e9dc6ccf8450ab17
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Support `resolve.extensions` ([#1759](https://github.com/lynx-family/lynx-stack/pull/1759))
|
|
8
8
|
|
|
9
|
+
- Set the default value of `output.cssModules.localIdentName` to `[local]-[hash:base64:6]`. ([#1783](https://github.com/lynx-family/lynx-stack/pull/1783))
|
|
10
|
+
|
|
9
11
|
## 0.11.2
|
|
10
12
|
|
|
11
13
|
### Patch Changes
|
|
@@ -232,7 +232,10 @@ export const __webpack_modules__ = {
|
|
|
232
232
|
})(),
|
|
233
233
|
output: {
|
|
234
234
|
filename: getFilename(config.output?.filename),
|
|
235
|
-
inlineScripts: !enableChunkSplitting
|
|
235
|
+
inlineScripts: !enableChunkSplitting,
|
|
236
|
+
cssModules: {
|
|
237
|
+
localIdentName: '[local]-[hash:base64:6]'
|
|
238
|
+
}
|
|
236
239
|
},
|
|
237
240
|
performance: {
|
|
238
241
|
profile: (0, debug._o)() ? true : void 0
|
package/dist/1~src_cli_dev_ts.js
CHANGED
|
@@ -224,7 +224,10 @@ export const __webpack_modules__ = {
|
|
|
224
224
|
})(),
|
|
225
225
|
output: {
|
|
226
226
|
filename: getFilename(config.output?.filename),
|
|
227
|
-
inlineScripts: !enableChunkSplitting
|
|
227
|
+
inlineScripts: !enableChunkSplitting,
|
|
228
|
+
cssModules: {
|
|
229
|
+
localIdentName: '[local]-[hash:base64:6]'
|
|
230
|
+
}
|
|
228
231
|
},
|
|
229
232
|
performance: {
|
|
230
233
|
profile: (0, debug._o)() ? true : void 0
|
|
@@ -170,7 +170,10 @@ export const __webpack_modules__ = {
|
|
|
170
170
|
})(),
|
|
171
171
|
output: {
|
|
172
172
|
filename: getFilename(config.output?.filename),
|
|
173
|
-
inlineScripts: !enableChunkSplitting
|
|
173
|
+
inlineScripts: !enableChunkSplitting,
|
|
174
|
+
cssModules: {
|
|
175
|
+
localIdentName: '[local]-[hash:base64:6]'
|
|
176
|
+
}
|
|
174
177
|
},
|
|
175
178
|
performance: {
|
|
176
179
|
profile: (0, debug._o)() ? true : void 0
|
|
@@ -172,7 +172,10 @@ export const __webpack_modules__ = {
|
|
|
172
172
|
})(),
|
|
173
173
|
output: {
|
|
174
174
|
filename: getFilename(config.output?.filename),
|
|
175
|
-
inlineScripts: !enableChunkSplitting
|
|
175
|
+
inlineScripts: !enableChunkSplitting,
|
|
176
|
+
cssModules: {
|
|
177
|
+
localIdentName: '[local]-[hash:base64:6]'
|
|
178
|
+
}
|
|
176
179
|
},
|
|
177
180
|
performance: {
|
|
178
181
|
profile: (0, debug._o)() ? true : void 0
|
package/dist/index.d.ts
CHANGED
|
@@ -862,7 +862,51 @@ export declare interface CssModules {
|
|
|
862
862
|
*
|
|
863
863
|
* @remarks
|
|
864
864
|
*
|
|
865
|
+
* The default value is `'[local]-[hash:base64:6]'` which combines the original class name with a 6-character hash.
|
|
866
|
+
*
|
|
867
|
+
* Available placeholders:
|
|
868
|
+
*
|
|
869
|
+
* - `[local]`: Original class name
|
|
870
|
+
*
|
|
871
|
+
* - `[hash]`: Hash of the class name
|
|
872
|
+
*
|
|
873
|
+
* - `[path]`: File path
|
|
874
|
+
*
|
|
875
|
+
* - `[name]`: File name
|
|
876
|
+
*
|
|
877
|
+
* - `[ext]`: File extension
|
|
878
|
+
*
|
|
865
879
|
* See {@link https://github.com/webpack-contrib/css-loader?tab=readme-ov-file#localIdentName | css-loader#localIdentName} for details.
|
|
880
|
+
*
|
|
881
|
+
* @example
|
|
882
|
+
*
|
|
883
|
+
* Use only hash for shorter class names:
|
|
884
|
+
*
|
|
885
|
+
* ```js
|
|
886
|
+
* import { defineConfig } from '@lynx-js/rspeedy'
|
|
887
|
+
* export default defineConfig({
|
|
888
|
+
* output: {
|
|
889
|
+
* cssModules: {
|
|
890
|
+
* localIdentName: '[hash:base64:8]',
|
|
891
|
+
* },
|
|
892
|
+
* },
|
|
893
|
+
* })
|
|
894
|
+
* ```
|
|
895
|
+
*
|
|
896
|
+
* @example
|
|
897
|
+
*
|
|
898
|
+
* Include file name for debugging:
|
|
899
|
+
*
|
|
900
|
+
* ```js
|
|
901
|
+
* import { defineConfig } from '@lynx-js/rspeedy'
|
|
902
|
+
* export default defineConfig({
|
|
903
|
+
* output: {
|
|
904
|
+
* cssModules: {
|
|
905
|
+
* localIdentName: '[name]__[local]--[hash:base64:5]',
|
|
906
|
+
* },
|
|
907
|
+
* },
|
|
908
|
+
* })
|
|
909
|
+
* ```
|
|
866
910
|
*/
|
|
867
911
|
localIdentName?: string | undefined;
|
|
868
912
|
}
|
package/dist/index.js
CHANGED
|
@@ -248,7 +248,10 @@ function applyDefaultRspeedyConfig(config) {
|
|
|
248
248
|
})(),
|
|
249
249
|
output: {
|
|
250
250
|
filename: getFilename(config.output?.filename),
|
|
251
|
-
inlineScripts: !enableChunkSplitting
|
|
251
|
+
inlineScripts: !enableChunkSplitting,
|
|
252
|
+
cssModules: {
|
|
253
|
+
localIdentName: '[local]-[hash:base64:6]'
|
|
254
|
+
}
|
|
252
255
|
},
|
|
253
256
|
performance: {
|
|
254
257
|
profile: (0, debug._o)() ? true : void 0
|