File tree Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -207,11 +207,15 @@ async function createWebpackConfig(buildConfig) {
207
207
isJsFile === true &&
208
208
context . resourcePath . includes ( '.scoped' )
209
209
) {
210
- return `${ localName } --${ crypto
211
- . createHash ( 'md5' )
212
- . update ( localName )
213
- . digest ( 'hex' )
214
- . substring ( 0 , 8 ) } `;
210
+ if ( localName . includes ( 't-bolt' ) ) {
211
+ return localName ;
212
+ } else {
213
+ return `${ localName } --${ crypto
214
+ . createHash ( 'md5' )
215
+ . update ( localName )
216
+ . digest ( 'hex' )
217
+ . substring ( 0 , 8 ) } `;
218
+ }
215
219
} else {
216
220
return localName ;
217
221
}
@@ -234,11 +238,16 @@ async function createWebpackConfig(buildConfig) {
234
238
generateScopedName ( name , filename , css ) {
235
239
if ( filename . includes ( '.scoped' ) && isJsFile === false ) {
236
240
const i = css . indexOf ( `.${ name } ` ) ;
237
- return `${ name } --${ crypto
238
- . createHash ( 'md5' )
239
- . update ( name )
240
- . digest ( 'hex' )
241
- . substring ( 0 , 8 ) } `;
241
+
242
+ if ( name . includes ( 't-bolt' ) ) {
243
+ return name ;
244
+ } else {
245
+ return `${ name } --${ crypto
246
+ . createHash ( 'md5' )
247
+ . update ( name )
248
+ . digest ( 'hex' )
249
+ . substring ( 0 , 8 ) } `;
250
+ }
242
251
} else {
243
252
return name ;
244
253
}
You can’t perform that action at this time.
0 commit comments