We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a8055ef + 7b08661 commit a918e00Copy full SHA for a918e00
src/index.ts
@@ -267,7 +267,8 @@ const vuePlugin = (opts: Options = {}) => <esbuild.Plugin>{
267
],
268
importer: [
269
(url: string) => {
270
- const modulePath = path.join(process.cwd(), "node_modules", url);
+ const projectRoot = process.env.npm_config_local_prefix || process.cwd()
271
+ const modulePath = path.join(projectRoot, "node_modules", url);
272
273
if (fs.existsSync(modulePath)) {
274
return { file: modulePath }
0 commit comments