Skip to content

Commit

Permalink
Move storybook-specific babelrc to stories/
Browse files Browse the repository at this point in the history
@babel/preset-env (required by strorybook) conflicted with
@vanilla-extract/integration (used by @vanilla-extract/vite-plugin)
which would make vitest fail.
  • Loading branch information
gabro committed Jul 10, 2023
1 parent 36a8fbe commit 886be54
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
14 changes: 1 addition & 13 deletions packages/bento-design-system/.babelrc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
{
"sourceType": "unambiguous",
"presets": [
[
"@babel/preset-env",
{
"targets": {
"chrome": 100
}
}
],
"@babel/preset-typescript",
"@babel/preset-react"
],
"presets": ["@babel/preset-typescript", "@babel/preset-react"],
"plugins": ["@vanilla-extract/babel-plugin"]
}
15 changes: 15 additions & 0 deletions packages/bento-design-system/stories/.babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"sourceType": "unambiguous",
"presets": [
"@babel/preset-typescript",
"@babel/preset-react",
[
"@babel/preset-env",
{
"targets": {
"chrome": 100
}
}
]
]
}

0 comments on commit 886be54

Please sign in to comment.