Skip to content

Commit c9cc225

Browse files
authored
fix: revert default symlinks setting (#2409)
Currently in Vue CLI we set the default `symlinks` config to `false`. This setting is counterintuitive, and inconsistent with webpack's default configuration, per https://webpack.js.org/configuration/resolve/#resolve-symlinks The change of default `symlinks` value is introduced by 5b4df14 It is most likely a duplicate of 145492b Since several third-party npm clients uses symlinks to speed up installation (e.g. cnpm, pnpm...), that change breaks webpack HMR for their users. See #1559, #2195, #2284 This commit also fixes #1609
1 parent 8582a08 commit c9cc225

File tree

1 file changed

+0
-1
lines changed
  • packages/@vue/cli-service/lib/config

1 file changed

+0
-1
lines changed

packages/@vue/cli-service/lib/config/base.js

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ module.exports = (api, options) => {
3737
.publicPath(options.baseUrl)
3838

3939
webpackConfig.resolve
40-
.set('symlinks', false)
4140
.extensions
4241
.merge(['.js', '.jsx', '.vue', '.json'])
4342
.end()

0 commit comments

Comments
 (0)