diff --git a/lib/build/webpack/base.config.js b/lib/build/webpack/base.config.js index d872068ae8..be5df6b8e5 100644 --- a/lib/build/webpack/base.config.js +++ b/lib/build/webpack/base.config.js @@ -14,7 +14,7 @@ const { urlJoin } = require('../../utils') |-------------------------------------------------------------------------- */ module.exports = function () { - const nodeModulesDir = join(__dirname, '..', '..', '..', 'node_modules') + const nodeModulesDir = join(this.dir, 'node_modules') let config = { devtool: 'source-map', entry: {