Skip to content

Commit

Permalink
chore: don't support add watch file
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Dec 24, 2024
1 parent 52fadfd commit cfd70c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/mako/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,16 @@ export async function build(params: BuildParams) {
plugin[key] = (context: any, ...args: any[]) => {
return oldValue.apply(
{
// https://rollupjs.org/plugin-development/#this-parse
parse(_code: string) {
throw new Error('parse is not supported');
},
// https://rollupjs.org/plugin-development/#this-addwatchfile
addWatchFile(_file: string) {
throw new Error('addWatchFile is not supported');
},
// https://rollupjs.org/plugin-development/#this-emitfile
// only support asset type
emitFile(file: {
type: 'asset' | 'chunk' | 'prebuilt-chunk';
name?: string;
Expand Down

0 comments on commit cfd70c0

Please sign in to comment.