We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c6302c commit e2b41ceCopy full SHA for e2b41ce
src/models/Config.js
@@ -97,10 +97,19 @@ class Config {
97
} else if (typeof compileConfig === 'function') {
98
nextConfig = compileConfig(Object.assign({}, this._config)) || {};
99
}
100
+
101
if(nextConfig.context && !sysPath.isAbsolute(nextConfig.context)){
102
nextConfig.context = sysPath.resolve(this._config.cwd, nextConfig.context)
103
104
105
+ if(nextConfig.resolve.alias) {
106
+ let alias = nextConfig.resolve.alias
107
+ Object.keys(alias).map(function(key, i){
108
+ alias[key] = sysPath.relative(nextConfig.context, alias[key])
109
+ })
110
+ extend(true, this._config.resolve.alias, alias);
111
+ }
112
113
this._config.resolve.root.push(nextConfig.context)
114
115
extend(true, this._config, nextConfig);
0 commit comments