This commit is contained in:
777
2025-03-22 17:24:03 +08:00
parent 4513f71049
commit 04ad3b977b
4 changed files with 6 additions and 0 deletions

View File

@@ -8,6 +8,9 @@ module.exports = {
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
'plugins': ['dynamic-import-node']
},
'production': {
'plugins': ['@babel/plugin-syntax-dynamic-import']
}
}
}