Skip to content

Commit

Permalink
build: use babel for compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
anniehu4 committed Dec 9, 2020
1 parent a6d9162 commit 0bb3be2
Show file tree
Hide file tree
Showing 4 changed files with 1,037 additions and 64 deletions.
13 changes: 13 additions & 0 deletions packages/components/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"presets": ["@babel/preset-typescript"],
"plugins": [
"@babel/plugin-transform-modules-commonjs",
[
"module-resolver",
{
"root": ["./src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
]
]
}
2 changes: 1 addition & 1 deletion packages/components/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { addParameters } from "@storybook/react";
import { withA11y } from "@storybook/addon-a11y";

addDecorator(withA11y);
addDecorator(storyFn => <div dir="ltr">{storyFn()}</div>);
addDecorator((storyFn) => <div dir="ltr">{storyFn()}</div>);
addParameters({
docs: {
container: DocsContainer,
Expand Down
Loading

0 comments on commit 0bb3be2

Please sign in to comment.