Skip to content

Commit

Permalink
fix: πŸ› workaround due mako's interop add default to a empty file
Browse files Browse the repository at this point in the history
  • Loading branch information
stormslowly committed Dec 12, 2024
1 parent 2e2c008 commit 018cffe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/runtime/src/Plugin/Plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ export default class Plugin {
assert(!!plugin.apply, `register failed, plugin.apply must supplied`);
assert(!!plugin.path, `register failed, plugin.path must supplied`);
Object.keys(plugin.apply).forEach((key) => {
if (key === 'default') {
return;
}
assert(
this.validKeys.indexOf(key) > -1,
`register failed, invalid key ${key} from plugin ${plugin.path}.`,
Expand Down

0 comments on commit 018cffe

Please sign in to comment.