diff --git a/tools/bin/webpack.config.dev.js b/tools/bin/webpack.config.dev.js index bf804fcb..f4a9900e 100644 --- a/tools/bin/webpack.config.dev.js +++ b/tools/bin/webpack.config.dev.js @@ -25,7 +25,7 @@ const { ports } = appConfig; /** * @function createMemfs - * @return {import('../interface').OutputFileSystem} + * @return {import('../interface').FileSystem} */ function createMemfs() { const volume = new memfs.Volume(); diff --git a/tools/interface.ts b/tools/interface.ts index a7b7dcb6..1803b9ea 100644 --- a/tools/interface.ts +++ b/tools/interface.ts @@ -28,6 +28,11 @@ type EnvFunction = (isDevelopment: boolean, env: Env) => Env | Promise; */ export { Options as SwcConfig } from '@swc/core'; +/** + * @description Webpack 文件系统 + */ +export type FileSystem = NonNullable; + /** * @description Postcss 配置 */ @@ -43,11 +48,6 @@ export interface SvgoConfig extends Omit { path?: string; } -/** - * @description Webpack 文件系统 - */ -export type OutputFileSystem = NonNullable; - /** * @description App 配置 */