diff --git a/e2e/fixtures/plugins.context/plugins.config.js b/e2e/fixtures/plugins.context/plugins.config.js index 26287d7c5..a17e6362e 100644 --- a/e2e/fixtures/plugins.context/plugins.config.js +++ b/e2e/fixtures/plugins.context/plugins.config.js @@ -7,7 +7,6 @@ module.exports = [ }, async load(path) { if (path.endsWith('.hoo')) { - // console.log('load', path, this, this.warn); this.warn('load: ' + path); this.warn({ message: 'test warn with object', diff --git a/packages/mako/src/index.ts b/packages/mako/src/index.ts index 9cde1e828..6f360323f 100644 --- a/packages/mako/src/index.ts +++ b/packages/mako/src/index.ts @@ -199,15 +199,13 @@ export async function build(params: BuildParams) { throw new Error('parse is not supported'); }, emitFile(file: { - type: 'asset' | 'chunk' | 'prebuilt-chunk', + type: 'asset' | 'chunk' | 'prebuilt-chunk'; name?: string; fileName?: string; source?: string | Uint8Array; }) { if (file.type !== 'asset') { - throw new Error( - 'emitFile only support asset type', - ); + throw new Error('emitFile only support asset type'); } if (file.name && !file.fileName) { throw new Error(