_fix(webpack): resolve from rootDir with higher periority

[release]
This commit is contained in:
Pooya Parsa 2020-12-23 11:47:56 +01:00
parent d3ef163004
commit b4663d2bfb

View File

@ -22,7 +22,7 @@ export default class WebpackBaseConfig {
constructor (builder) {
this.builder = builder
this.buildContext = builder.buildContext
this.resolveModule = id => tryResolve(id) || id
this.resolveModule = id => tryResolve(id, [this.buildContext.options.rootDir, __dirname]) || id
}
get colors () {