diff --git a/build/build.ts b/build/build.ts index 8766de54d..6622073ca 100644 --- a/build/build.ts +++ b/build/build.ts @@ -1,5 +1,5 @@ -import fs from 'fs'; import { execSync } from 'child_process'; +import fs from 'fs'; import { type BuildFormat } from './configs/vite.common'; const formats: BuildFormat[] = ['es', 'mjs', 'cjs', 'iife']; diff --git a/build/configs/vite.common.ts b/build/configs/vite.common.ts index 954a726b4..517212c81 100644 --- a/build/configs/vite.common.ts +++ b/build/configs/vite.common.ts @@ -1,9 +1,9 @@ -import path from 'path'; -import { lstatSync, readdirSync } from 'fs'; import vue from '@vitejs/plugin-vue'; -import { type InlineConfig } from 'vite'; -import { visualizer } from 'rollup-plugin-visualizer'; +import { lstatSync, readdirSync } from 'fs'; +import path from 'path'; import type { RollupOptions } from 'rollup'; +import { visualizer } from 'rollup-plugin-visualizer'; +import { type InlineConfig } from 'vite'; export type BuildFormat = 'es' | 'mjs' | 'cjs' | 'iife';