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

Commit 1eb923c

Browse files
committed
refactor: invoke webpack with --preserve-symlinks
1 parent de20dec commit 1eb923c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: bin/ns-bundle

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const semver = require("semver");
88

99
const { getPackageJson, getProjectDir } = require("../projectHelpers");
1010

11-
const PROJECT_DIR = getProjectDir({ nestingLvl: 3 });
11+
const PROJECT_DIR = getProjectDir({ nestingLvl: 2 });
1212
const packageJson = getPackageJson(PROJECT_DIR);
1313

1414
if (!process.env.npm_config_argv) {
@@ -152,7 +152,9 @@ function webpack(platform, env) {
152152
console.log(`Running webpack for ${platform}...`);
153153

154154
const args = [
155-
`webpack`,
155+
`node`,
156+
`--preserve-symlinks`,
157+
`./node_modules/.bin/webpack`,
156158
`--config=webpack.config.js`,
157159
`--progress`,
158160
`--env.${platform}`,

0 commit comments

Comments
 (0)