File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export async function submoduleOptimizer(config: BuildConfig) {
5151 // throws an error if files from src/core are loaded, except for some allowed imports
5252 name : 'forbid-core' ,
5353 setup ( build ) {
54- build . onLoad ( { filter : / s r c \/ c o r e \/ / } , ( args ) => {
54+ build . onLoad ( { filter : / s r c ( \/ | \\ ) c o r e ( \/ | \\ ) / } , ( args ) => {
5555 if ( args . path . includes ( 'util' ) || args . path . includes ( 'shared' ) ) {
5656 return null ;
5757 }
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export async function submoduleServer(config: BuildConfig) {
4848 // throws an error if files from src/core are loaded, except for some allowed imports
4949 name : 'forbid-core' ,
5050 setup ( build ) {
51- build . onLoad ( { filter : / s r c \/ c o r e \/ / } , ( args ) => {
51+ build . onLoad ( { filter : / s r c ( \/ | \\ ) c o r e ( \/ | \\ ) / } , ( args ) => {
5252 if ( args . path . includes ( 'util' ) || args . path . includes ( 'shared' ) ) {
5353 return null ;
5454 }
You can’t perform that action at this time.
0 commit comments