Skip to content

Commit 87fe9cc

Browse files
Revert unnecessary file extension changes
- Revert babel.config.cjs back to babel.config.js (CommonJS works fine in workspace) - Remove unnecessary React/TypeScript presets from babel config - Update knip.ts to reference correct babel config path - Keep jest.config.mjs (ES module extension is actually required) Testing confirmed: - babel.config.js works with CommonJS syntax in workspace package - React/TypeScript presets were unnecessary (ts-jest handles JSX/TSX) - All tests pass with simplified configuration - jest.config.js extension causes "Cannot use import statement" error 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent a784eb6 commit 87fe9cc

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

knip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const config: KnipConfig = {
2626
'!packages/react-on-rails/lib/**',
2727
],
2828
babel: {
29-
config: ['packages/react-on-rails/babel.config.cjs'],
29+
config: ['packages/react-on-rails/babel.config.js'],
3030
},
3131
ignore: [
3232
'packages/react-on-rails/tests/emptyForTesting.js',

packages/react-on-rails/babel.config.cjs

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [['@babel/preset-env', { targets: { node: 'current' } }]],
3+
};

0 commit comments

Comments
 (0)