@dr.pogodin/react-utils 1.41.6 → 1.41.8
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.
|
@@ -239,6 +239,14 @@ function configFactory(ops) {
|
|
|
239
239
|
fonts: path_1.default.resolve(o.context, 'src/assets/fonts'),
|
|
240
240
|
styles: path_1.default.resolve(o.context, 'src/styles'),
|
|
241
241
|
},
|
|
242
|
+
// NOTE: This is primarily motivated by the issue #413
|
|
243
|
+
// https://github.com/birdofpreyru/react-utils/issues/413
|
|
244
|
+
// caused by react-router exporting different package builds
|
|
245
|
+
// for "import" and "default" conditions, resulting in Webpack
|
|
246
|
+
// picking up different module versions for import() and require()
|
|
247
|
+
// imports. Adding "import" with the highest priorty below forces
|
|
248
|
+
// the "import" to be used, working around the problem.
|
|
249
|
+
conditionNames: ['import', '...'],
|
|
242
250
|
extensions: [
|
|
243
251
|
'.ts',
|
|
244
252
|
'.tsx',
|
package/package.json
CHANGED