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 e36c697 commit 6afd43dCopy full SHA for 6afd43d
src/models/Project.js
@@ -37,8 +37,14 @@ class Project {
37
cwd: this.cwd,
38
_manager: Manager,
39
setConfig: ((setFun) => {
40
- let currentConfig = this.config.getConfig();
41
- extend(true, currentConfig, setFun(currentConfig));
+ let currentConfig = this.config.getConfig(),
+ nextConfig = setFun(currentConfig);
42
+
43
+ if(nextConfig.context && !sysPath.isAbsolute(nextConfig.context)){
44
+ nextConfig.context = sysPath.resolve(this.cwd, nextConfig.context)
45
+ }
46
47
+ extend(true, currentConfig, nextConfig);
48
}),
49
setExports: this.config.setExports.bind(this.config),
50
setGroupExports: this.config.setGroupExports.bind(this.config),
0 commit comments