diff --git a/packages/esbuild-plugin-ast-vue/package.json b/packages/esbuild-plugin-ast-vue/package.json index cc6a789..fc87838 100644 --- a/packages/esbuild-plugin-ast-vue/package.json +++ b/packages/esbuild-plugin-ast-vue/package.json @@ -48,6 +48,7 @@ "hash-sum": "^2.0.0" }, "peerDependencies": { + "@liip/esbuild-plugin-ast": "0.3.x", "esbuild": "0.19.x" } } diff --git a/packages/esbuild-plugin-ast-vue/src/plugin.ts b/packages/esbuild-plugin-ast-vue/src/plugin.ts index 2477e9e..eecc4f9 100644 --- a/packages/esbuild-plugin-ast-vue/src/plugin.ts +++ b/packages/esbuild-plugin-ast-vue/src/plugin.ts @@ -75,6 +75,7 @@ export function astParserVue({ build.onResolve({ filter: /\.vue\?type=script/ }, (args) => { return { path: args.path, + namespace: 'ast-parser', }; }); diff --git a/packages/esbuild-plugin-ast/src/plugin.ts b/packages/esbuild-plugin-ast/src/plugin.ts index ca25500..64c8e2b 100644 --- a/packages/esbuild-plugin-ast/src/plugin.ts +++ b/packages/esbuild-plugin-ast/src/plugin.ts @@ -109,7 +109,7 @@ export function astParser({ /** * Load, parse and modify any other imports that was placed in - * the `phx-class-prefixer` namespace + * the `ast-parser` namespace */ build.onLoad({ filter: /.*/, namespace }, async (args) => { const source = await readFile(args.path, 'utf-8');