chore: remove type module in scripts (#8240)

fix AF-1385
This commit is contained in:
forehalo
2024-09-13 09:21:29 +00:00
parent 2ce9d37af1
commit 1d7932851e
3 changed files with 44 additions and 36 deletions

View File

@@ -45,7 +45,6 @@ export function createWebpackConfig(cwd: string, flags: BuildFlags) {
return new HTMLPlugin({
template: join(rootPath, 'webpack', 'template.html'),
inject: 'body',
scriptLoading: 'module',
minify: false,
chunks: [entryName],
filename: `${entryName === 'app' ? 'index' : entryName}.html`, // main entry should take name index.html