Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 5886757

Browse files
committed
The plugin should only interact with .vue files
1 parent c0c25ee commit 5886757

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/index.js

-4
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ export default function vue(options = {}) {
9494
return o;
9595
},
9696
transform(source, id) {
97-
if (id.endsWith('vue.common.js')) {
98-
return source.replace(/process\.env\.NODE_ENV/g,
99-
process.env.NODE_ENV || 'production');
100-
}
10197
if (!filter(id) || !id.endsWith('.vue')) {
10298
return null;
10399
}

0 commit comments

Comments
 (0)