Skip to content

Commit

Permalink
fix: resolve.symlinks to false so that node_modules exclusion works
Browse files Browse the repository at this point in the history
properly on linked modules
  • Loading branch information
yyx990803 committed Jun 7, 2018
1 parent 85e6e5e commit 5b4df14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/@vue/cli-service/lib/config/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = (api, options) => {
.publicPath(options.baseUrl)

webpackConfig.resolve
.set('symlinks', true)
.set('symlinks', false)
.extensions
.merge(['.js', '.jsx', '.vue', '.json'])
.end()
Expand All @@ -35,7 +35,6 @@ module.exports = (api, options) => {
)

webpackConfig.resolveLoader
.set('symlinks', true)
.modules
.add('node_modules')
.add(api.resolve('node_modules'))
Expand Down

0 comments on commit 5b4df14

Please sign in to comment.