Skip to content

Commit

Permalink
chore: Update tools
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun committed Mar 27, 2024
1 parent 3c226cf commit d3abb06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tools/bin/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const { ports } = appConfig;

/**
* @function createMemfs
* @return {import('../interface').OutputFileSystem}
* @return {import('../interface').FileSystem}
*/
function createMemfs() {
const volume = new memfs.Volume();
Expand Down
10 changes: 5 additions & 5 deletions tools/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ type EnvFunction = (isDevelopment: boolean, env: Env) => Env | Promise<Env>;
*/
export { Options as SwcConfig } from '@swc/core';

/**
* @description Webpack 文件系统
*/
export type FileSystem = NonNullable<Options['fs']>;

/**
* @description Postcss 配置
*/
Expand All @@ -43,11 +48,6 @@ export interface SvgoConfig extends Omit<SvgoOptions, 'configFile'> {
path?: string;
}

/**
* @description Webpack 文件系统
*/
export type OutputFileSystem = NonNullable<Options['outputFileSystem']>;

/**
* @description App 配置
*/
Expand Down

0 comments on commit d3abb06

Please sign in to comment.