build(@vant/area-data): generate both cjs/esm output (#10107)

This commit is contained in:
neverland
2021-12-28 11:23:52 +08:00
committed by GitHub
parent 90e64101a7
commit ffd7f4437d
5 changed files with 33 additions and 8 deletions

View File

@@ -11,6 +11,8 @@ function bundleBundle(format) {
bundle: true,
target: ['chrome53'],
outfile,
// preserve Chinese character
charset: 'utf8',
external: ['vue'],
entryPoints: ['./src/index.ts'],
}).then(finish);