@xh/hoist-dev-utils 8.1.0 → 8.1.1
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/configureWebpack.js +4 -3
- package/package.json +1 -1
package/configureWebpack.js
CHANGED
|
@@ -237,11 +237,12 @@ async function configureWebpack(env) {
|
|
|
237
237
|
if (inlineHoist) {
|
|
238
238
|
resolveAliases['@xh/hoist'] = hoistPath;
|
|
239
239
|
|
|
240
|
-
// This ensures that we use the same instance of
|
|
241
|
-
// to get hooks working since they will throw an error if the
|
|
240
|
+
// This ensures that we use the same instance of libs in hoist-react as in the app - needed
|
|
241
|
+
// to get hooks working since they will throw an error if the lib instance that the hook
|
|
242
242
|
// was imported from is different than the instance that was used to render the component
|
|
243
243
|
// (which will always be the instance hoist-react has when using element factories)
|
|
244
|
-
resolveAliases
|
|
244
|
+
resolveAliases['react'] = path.resolve('./node_modules/react');
|
|
245
|
+
resolveAliases['@ag-grid-community'] = path.resolve('./node_modules/@ag-grid-community');
|
|
245
246
|
}
|
|
246
247
|
|
|
247
248
|
// When running inline, resolve inline Hoist's own node_modules package so we can tell Babel to exclude
|
package/package.json
CHANGED