diff --git a/.changeset/rude-roses-draw.md b/.changeset/rude-roses-draw.md new file mode 100644 index 0000000..39adfe8 --- /dev/null +++ b/.changeset/rude-roses-draw.md @@ -0,0 +1,5 @@ +--- +"@marko/vite": patch +--- + +Update ~ resolve alias to avoid matching ~ by itself as the package name. diff --git a/src/index.ts b/src/index.ts index cc643b6..9b302f9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -361,7 +361,7 @@ export default function markoPlugin(opts: Options = {}): vite.Plugin[] { resolve: { alias: [ { - find: /^~/, + find: /^~(?!\/)/, replacement: "", }, ],