Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Dec 24, 2024
1 parent b267810 commit 52fadfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion e2e/fixtures/plugins.context/plugins.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 2 additions & 4 deletions packages/mako/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 52fadfd

Please sign in to comment.