-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(babel): remove rollup dependency and compile dist solely with babel
- Loading branch information
siarhei.fedarovich
committed
Jan 10, 2020
1 parent
30606b1
commit d416b4b
Showing
25 changed files
with
710 additions
and
931 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const isCjsBuild = process.env.BABEL_ENV === "cjs"; | ||
|
||
module.exports = { | ||
presets: [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
modules: isCjsBuild ? "commonjs" : false | ||
} | ||
], | ||
"@babel/preset-react", | ||
"@babel/preset-typescript" | ||
], | ||
plugins: [ | ||
[ | ||
"@babel/plugin-proposal-object-rest-spread", | ||
{ | ||
loose: true, | ||
useBuiltIns: true | ||
} | ||
], | ||
"@babel/plugin-proposal-class-properties", | ||
[ | ||
"babel-plugin-transform-react-remove-prop-types", | ||
{ | ||
mode: "unsafe-wrap" | ||
} | ||
], | ||
"@babel/plugin-transform-runtime", | ||
[ | ||
"babel-plugin-styled-components", | ||
{ | ||
displayName: false, | ||
pure: true | ||
} | ||
] | ||
], | ||
babelrc: false | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.