refactor(@vant/cli): migrate to ESM package

This commit is contained in:
chenjiahan
2021-10-28 20:09:00 +08:00
committed by neverland
parent eec2ac4c0f
commit 1b45f38133
50 changed files with 255 additions and 196 deletions
+5 -5
View File
@@ -1,10 +1,10 @@
import { emptyDir } from 'fs-extra';
import { setNodeEnv } from '../common';
import { compileSite } from '../compiler/compile-site';
import { SITE_DIST_DIR } from '../common/constant';
import fse from 'fs-extra';
import { setNodeEnv } from '../common/index.js';
import { compileSite } from '../compiler/compile-site.js';
import { SITE_DIST_DIR } from '../common/constant.js';
export async function buildSite() {
setNodeEnv('production');
await emptyDir(SITE_DIST_DIR);
await fse.emptyDir(SITE_DIST_DIR);
await compileSite(true);
}