File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -737,12 +737,6 @@ const composeBundleConfig = (
737737 // user should use copy to keep origin file or use another separate entry to deal this
738738 let request : string = data . request ;
739739
740- // WARN: escape hatch, we preserve the import start with "!"
741- // import '!./foo' -> import './foo'
742- if ( request [ 0 ] === '!' ) {
743- return callback ( null , request . slice ( 1 ) ) ;
744- }
745-
746740 const cssExternal = cssExternalHandler (
747741 request ,
748742 callback ,
@@ -762,7 +756,7 @@ const composeBundleConfig = (
762756 if ( JS_EXTENSIONS_PATTERN . test ( request ) ) {
763757 request = request . replace ( / \. [ ^ . ] + $ / , jsExtension ) ;
764758 } else {
765- // If it does not match jsExtensionsPattern or cssExtensionsPattern , we should do nothing, eg: ./foo.png
759+ // If it does not match jsExtensionsPattern, we should do nothing, eg: ./foo.png
766760 return callback ( ) ;
767761 }
768762 } else {
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { CSS_EXTENSIONS_PATTERN } from '../constant';
55import { RemoveCssExtractAssetPlugin } from './RemoveCssExtractAssetPlugin' ;
66
77const require = createRequire ( import . meta. url ) ;
8- const CSS_MODULE_REG = / \. m o d u l e \. \w + $ / i;
98
109export const RSLIB_TEMP_CSS_DIR = '__rslib_css__' ;
1110
@@ -23,6 +22,7 @@ export function isCssFile(filepath: string): boolean {
2322 return CSS_EXTENSIONS_PATTERN . test ( filepath ) ;
2423}
2524
25+ const CSS_MODULE_REG = / \. m o d u l e \. \w + $ / i;
2626export function isCssModulesFile (
2727 filepath : string ,
2828 auto : CssLoaderOptionsAuto ,
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export type BannerAndFooter = {
5050} ;
5151
5252export type Redirect = {
53- // TODO: others
53+ // TODO: support other redirects
5454 // alias?: boolean;
5555 style ?: boolean ;
5656 // asset?: boolean;
You can’t perform that action at this time.
0 commit comments