Commit caeb079
Fix babel preset require path for Shakapacker 9.3.0 with explicit .js extension
The shakapacker babel preset requires the explicit .js extension in the require
statement for Jest/Babel to resolve it correctly. Without the extension, Jest
fails with "Cannot find module" error.
Changes:
- Restored .js extension in spec/dummy/babel.config.js
- Added eslint-disable-next-line comment to suppress import/extensions rule
Error fixed:
Cannot find module '/path/to/shakapacker/package/babel/preset'
at babel.config.js:1:27
This is a special case where the .js extension is required for module resolution
in the Babel/Jest context, even though ESLint normally discourages it.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 38a876c commit caeb079
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
0 commit comments