mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
feat: allow skipping virtual dependencies
This commit is contained in:
parent
ec21e799f3
commit
17099cd8ff
6
.changeset/rude-goats-sing.md
Normal file
6
.changeset/rude-goats-sing.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@marko/translator-default": patch
|
||||
"marko": patch
|
||||
---
|
||||
|
||||
Allow skipping output of virtual dependencies by returning a falsey value from the `resolveVirtualDependency` option.
|
||||
@ -159,6 +159,10 @@ export default (entryFile, isHydrate) => {
|
||||
code,
|
||||
virtualPath,
|
||||
});
|
||||
|
||||
if (!dep) {
|
||||
continue;
|
||||
}
|
||||
} else if (dep.startsWith("package:")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user