mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 21:28:28 +08:00
fix: fix win system dynamicImport error
This commit is contained in:
@@ -17,7 +17,10 @@ const dynamicImportTransform = function (env: any = {}): Transform {
|
||||
return {
|
||||
test({ path }) {
|
||||
// Only convert the file
|
||||
return path.includes('/src/utils/helper/dynamicImport.ts');
|
||||
return (
|
||||
path.includes('/src/utils/helper/dynamicImport.ts') ||
|
||||
path.includes(`\\src\\utils\\helper\\dynamicImport.ts`)
|
||||
);
|
||||
},
|
||||
transform({ code }) {
|
||||
const { VITE_DYNAMIC_IMPORT } = env;
|
||||
|
Reference in New Issue
Block a user