Skip to content

Commit 46ffb7c

Browse files
fix: pass preserve-symlinks correctly
When runnign webpack, we want to pass `--preserve-symlinks` option to the Node.js. However, currently we pass it to webpack process itself. Fix the order of args.
1 parent c1e47cb commit 46ffb7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/webpack/webpack-compiler-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
139139

140140
const args = [
141141
...additionalNodeArgs,
142-
path.join(projectData.projectDir, "node_modules", "webpack", "bin", "webpack.js"),
143142
"--preserve-symlinks",
143+
path.join(projectData.projectDir, "node_modules", "webpack", "bin", "webpack.js"),
144144
`--config=${path.join(projectData.projectDir, "webpack.config.js")}`,
145145
...envParams
146146
];

0 commit comments

Comments
 (0)