Skip to content

Commit d6daed4

Browse files
balzssclaude
andcommitted
fix(ci): use relative path for babel preset in babel.config.js
Fix Cypress component tests failing with "Cannot find module '@instructure/ui-babel-preset'". Issue: Cypress webpack dev server running from its cache directory can't resolve pnpm workspace packages even with hoisted node linker. Solution: Use relative path `./packages/ui-babel-preset` instead of package name in babel.config.js require statement. This allows babel to directly require the workspace package regardless of pnpm's module resolution strategy. Fixes: Cypress component tests and visual regression tests 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 680df6e commit d6daed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
module.exports = {
2626
presets: [
2727
[
28-
require('@instructure/ui-babel-preset'),
28+
require('./packages/ui-babel-preset'),
2929
{
3030
coverage: Boolean(process.env.COVERAGE),
3131
esModules: Boolean(process.env.ES_MODULES),

0 commit comments

Comments
 (0)