File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -414,6 +414,19 @@ module.exports = function (webpackEnv) {
414
414
test : / \. ( j s | m j s | j s x | t s | t s x ) $ / ,
415
415
include : paths . appSrc ,
416
416
loader : require . resolve ( 'babel-loader' ) ,
417
+ // Allow "type": "module" in package.json without
418
+ // fully-specified file extension
419
+ // https://webpack.js.org/configuration/module/#resolvefullyspecified
420
+ //
421
+ // We require "type": "module" in package.json because
422
+ // ESLint we want to use ESM syntax in our eslint.config.js
423
+ // file and ESLint does not support other ways of specifying
424
+ // that the config file is ESM such as an .mjs extension:
425
+ // https://github.com/eslint/eslint/issues/13440
426
+ // https://github.com/eslint/eslint/issues/16580
427
+ resolve : {
428
+ fullySpecified : false ,
429
+ } ,
417
430
options : {
418
431
customize : require . resolve (
419
432
'babel-preset-react-app/webpack-overrides' ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @upleveled/react-scripts" ,
3
- "version" : " 5.0.11 " ,
3
+ "version" : " 5.0.13 " ,
4
4
"description" : " Configuration and scripts for Create React App." ,
5
5
"bugs" : {
6
6
"url" : " https://github.com/facebook/create-react-app/issues"
You can’t perform that action at this time.
0 commit comments