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
@@ -1,6 +1,6 @@
import { join } from 'path';
import { existsSync, readdirSync } from 'fs-extra';
import { SRC_DIR, SITE_MOBILE_SHARED_FILE } from '../common/constant';
import { existsSync, readdirSync } from 'fs';
import { SRC_DIR, SITE_MOBILE_SHARED_FILE } from '../common/constant.js';
import {
pascalize,
removeExt,
@@ -8,8 +8,8 @@ import {
getVantConfig,
smartOutputFile,
normalizePath,
} from '../common';
import { CSS_LANG } from '../common/css';
} from '../common/index.js';
import { CSS_LANG } from '../common/css.js';
type DemoItem = {
name: string;