fix(build): add target (#9018)

This commit is contained in:
三咲智子 2022-07-26 16:26:39 +08:00 committed by GitHub
parent 8387f6dac6
commit a97d349cd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,12 @@ async function buildFullEntry(minify: boolean) {
}),
]
if (minify) {
plugins.push(minifyPlugin({ sourceMap: true }))
plugins.push(
minifyPlugin({
target,
sourceMap: true,
})
)
}
const bundle = await rollup({