diff --git a/.changeset/blue-starfishes-study.md b/.changeset/blue-starfishes-study.md new file mode 100644 index 00000000000..39b524bfbc8 --- /dev/null +++ b/.changeset/blue-starfishes-study.md @@ -0,0 +1,6 @@ +--- +"remix": patch +"@remix-run/eslint-config": patch +--- + +fix(remix-eslint-config): use `require.resolve` when importing `@babel/preset-react` diff --git a/contributors.yml b/contributors.yml index a456707852e..490fe2137e8 100644 --- a/contributors.yml +++ b/contributors.yml @@ -391,3 +391,4 @@ - zainfathoni - zhe - garand +- kiancross diff --git a/packages/remix-eslint-config/index.js b/packages/remix-eslint-config/index.js index 541702546f8..bd894bdd08d 100644 --- a/packages/remix-eslint-config/index.js +++ b/packages/remix-eslint-config/index.js @@ -26,7 +26,7 @@ const config = { requireConfigFile: false, ecmaVersion: "latest", babelOptions: { - presets: ["@babel/preset-react"], + presets: [require.resolve("@babel/preset-react")], }, }, env: {