Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit d96d702

Browse files
committed
fix(Vue): resolve full path for entry module
fixes #742
1 parent 7f67198 commit d96d702

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: templates/webpack.vue.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { relative, resolve, sep } = require("path");
1+
const { relative, resolve } = require("path");
22

33
const webpack = require("webpack");
44
const CleanWebpackPlugin = require("clean-webpack-plugin");
@@ -56,7 +56,7 @@ module.exports = env => {
5656
const appResourcesFullPath = resolve(projectRoot, appResourcesPath);
5757

5858
const entryModule = nsWebpack.getEntryModule(appFullPath);
59-
const entryPath = `.${sep}${entryModule}`;
59+
const entryPath = resolve(appFullPath, entryModule);
6060
console.log(`Bundling application for entryPath ${entryPath}...`);
6161

6262
const config = {
@@ -149,7 +149,7 @@ module.exports = env => {
149149
},
150150
module: {
151151
rules: [{
152-
test: new RegExp(entryPath),
152+
test: entryPath,
153153
use: [
154154
// Require all Android app components
155155
platform === "android" && {

0 commit comments

Comments
 (0)