Skip to content

Commit c1ef322

Browse files
committed
Fix of webpack.resolveWeak(..) for use from a host codebase
1 parent 5a7b988 commit c1ef322

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Topcoder React Utils Changelog
22

3+
### v0.3.8
4+
- Fixes `webpack.resolveWeak(..)` for usage from within a host codebase.
5+
36
### v0.3.7
47
- Adds `<AppChunk>` and `webpack.resolveWeak(..)`.
58

config/babel/node-ssr.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ config.plugins = config.plugins.concat([
2020
const moduleResolverPluginOps
2121
= config.plugins.find(x => x[0] === 'module-resolver')[1];
2222

23-
moduleResolverPluginOps.transformFunctions = ['resolveWeak'];
23+
moduleResolverPluginOps.transformFunctions = [
24+
'resolveWeak',
25+
'webpack.resolveWeak',
26+
];
2427

2528
switch (process.env.BABEL_ENV) {
2629
case 'development':

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,5 @@
111111
"prepublishOnly": "npm run build",
112112
"test": "npm run lint && npm run jest"
113113
},
114-
"version": "0.3.7"
114+
"version": "0.3.8"
115115
}

0 commit comments

Comments
 (0)