-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(Tabs): updates reach/tabs #2879
base: main
Are you sure you want to change the base?
Conversation
f336a3a
to
eb12787
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good! CI is failing in a couple places in monorepo + monolith -- just holding off approving until that all looks good
const transpileModules = ['@reach']; | ||
|
||
// Find existing rule that excludes node_modules | ||
const nodeModulesRule = config.module.rules?.find((rule: any) => | ||
rule.exclude?.toString().includes('node_modules') | ||
); | ||
if (nodeModulesRule) { | ||
// Tell existing rule to not exclude modules that need transpiling | ||
const newExclude = new RegExp( | ||
`node_modules/(?!(${transpileModules.join('|')})/).*` | ||
); | ||
|
||
if (Array.isArray(nodeModulesRule.exclude)) { | ||
nodeModulesRule.exclude = [ | ||
newExclude, | ||
...nodeModulesRule.exclude?.filter( | ||
(exclude: any) => !exclude.toString().includes('node_modules') | ||
), | ||
]; | ||
} else { | ||
nodeModulesRule.exclude = newExclude; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooo, this is cool!
eb12787
to
7a29e2d
Compare
7a29e2d
to
b4a272c
Compare
📬Published Alpha Packages:@codecademy/[email protected] |
🚀 Styleguide deploy preview ready! |
@@ -10,7 +10,7 @@ | |||
"@codecademy/gamut-styles": "16.3.0", | |||
"@codecademy/variance": "0.21.3", | |||
"@reach/auto-id": "^0.16.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we should to bump this too if possible, to avoid having multiple versions in the lockfile
Overview
Updates @reach/tabs to version 18, Adds webpack rule for storybook build to transpile @reach modules
PR Checklist
Testing Instructions
Don't make me tap the sign.
PR Links and Envs