@xh/hoist-dev-utils 8.0.0-SNAPSHOT.1691178330607 → 8.0.0-SNAPSHOT.1691706493072
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 +8 -2
- package/package.json +1 -1
package/configureWebpack.js
CHANGED
|
@@ -388,7 +388,7 @@ async function configureWebpack(env) {
|
|
|
388
388
|
// Add JSX to support imports from .jsx source w/o needing to add the extension.
|
|
389
389
|
// Include "*" to continue supporting other imports that *do* specify an extension
|
|
390
390
|
// within the import statement (i.e. `import './foo.png'`). Yes, it's confusing.
|
|
391
|
-
extensions: ['
|
|
391
|
+
extensions: ['.*', '.js', '.ts', '.jsx', '.tsx', '.json']
|
|
392
392
|
},
|
|
393
393
|
|
|
394
394
|
// Ensure Webpack can find loaders installed both within the top-level node_modules dir for
|
|
@@ -422,7 +422,13 @@ async function configureWebpack(env) {
|
|
|
422
422
|
test: /\.mjs$/,
|
|
423
423
|
type: 'javascript/auto'
|
|
424
424
|
},
|
|
425
|
-
|
|
425
|
+
//------------------------
|
|
426
|
+
// Handle non-esModules from within esModules without specifying their file extension
|
|
427
|
+
//------------------------
|
|
428
|
+
{
|
|
429
|
+
test: /\.m?js$/,
|
|
430
|
+
resolve: {fullySpecified: false}
|
|
431
|
+
},
|
|
426
432
|
//------------------------
|
|
427
433
|
// Image processing
|
|
428
434
|
// Encodes `url()` references directly when small enough.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist-dev-utils",
|
|
3
|
-
"version": "8.0.0-SNAPSHOT.
|
|
3
|
+
"version": "8.0.0-SNAPSHOT.1691706493072",
|
|
4
4
|
"description": "Utilities for configuring builds of Hoist-React client applications.",
|
|
5
5
|
"repository": "github:xh/hoist-dev-utils",
|
|
6
6
|
"homepage": "https://github.com/xh/hoist-dev-utils",
|