@dword-design/base 12.0.16 → 12.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -59,7 +59,7 @@ class Base {
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
if (typeof config === 'function') {
|
|
62
|
-
config = config();
|
|
62
|
+
config = config.call(this);
|
|
63
63
|
}
|
|
64
64
|
if (config.name) {
|
|
65
65
|
config.name = pluginNameToPackageName(config.name, 'base-config');
|
|
@@ -112,7 +112,7 @@ class Base {
|
|
|
112
112
|
const inheritedConfigPath = config.name === this.packageConfig.name ? pathLib.resolve(this.cwd, 'src', 'index.js') : config.name;
|
|
113
113
|
let inheritedConfig = inheritedConfigPath ? jitiInstance(inheritedConfigPath) : undefined;
|
|
114
114
|
if (typeof inheritedConfig === 'function') {
|
|
115
|
-
inheritedConfig = inheritedConfig(mergeConfigs(defaultConfig, config));
|
|
115
|
+
inheritedConfig = inheritedConfig.call(this, mergeConfigs(defaultConfig, config));
|
|
116
116
|
}
|
|
117
117
|
configsToMerge.push(inheritedConfig);
|
|
118
118
|
}
|