Skip to content

Commit

Permalink
setup to build react components
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronchen committed Jun 3, 2021
1 parent 30ca34d commit e5de309
Show file tree
Hide file tree
Showing 8 changed files with 1,650 additions and 89 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ module.exports = {
'**/*.stories.{js,jsx,ts,tsx}',
'**/rollup.config.js',
],
peerDependencies: true,
packageDir,
},
],
Expand Down
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ module.exports = {
},
},
],
[
'@babel/preset-react',
{
runtime: 'automatic',
},
],
'@babel/preset-typescript',
],
plugins: ['@babel/plugin-transform-runtime'],
Expand Down
701 changes: 617 additions & 84 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"devDependencies": {
"@babel/plugin-transform-runtime": "^7.14.3",
"@babel/preset-env": "^7.14.4",
"@babel/preset-react": "^7.13.13",
"@babel/preset-typescript": "^7.13.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^19.0.0",
Expand Down
Loading

0 comments on commit e5de309

Please sign in to comment.