Skip to content

Commit b5736ba

Browse files
committed
🔧 Improve Vue resolved path
1 parent 56f35c8 commit b5736ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: ‎src/lib/createWebpackConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import FriendlyErrorsWebpackPlugin from 'friendly-errors-webpack-plugin';
22
import HtmlWebpackPlugin from 'html-webpack-plugin';
3-
import { dirname, resolve } from 'path';
3+
import { dirname, join, resolve } from 'path';
44
import terminalLink from 'terminal-link';
55
import VueLoaderPlugin from 'vue-loader/lib/plugin';
66
import {
@@ -90,7 +90,7 @@ export default function createWebpackConfig(
9090
},
9191
resolve: {
9292
alias: {
93-
vue$: `${vuePath}/vue.esm.js`,
93+
vue$: join(vuePath, 'vue.esm.js'),
9494
...finalAlias
9595
},
9696
extensions: ['.wasm', '.mjs', '.vue', '.ts', '.js', '.json']

0 commit comments

Comments
 (0)