Skip to content

Commit 2ede8d9

Browse files
add build scripts
1 parent 97bba4a commit 2ede8d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+13240
-0
lines changed

babel.config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
'use strict';
2+
3+
module.exports = {
4+
plugins: [
5+
'@babel/plugin-syntax-jsx',
6+
'@babel/plugin-transform-react-jsx',
7+
'@babel/plugin-transform-flow-strip-types',
8+
['@babel/plugin-proposal-class-properties', {loose: true}],
9+
'syntax-trailing-function-commas',
10+
[
11+
'@babel/plugin-proposal-object-rest-spread',
12+
{loose: true, useBuiltIns: true},
13+
],
14+
['@babel/plugin-transform-template-literals', {loose: true}],
15+
'@babel/plugin-transform-literals',
16+
'@babel/plugin-transform-arrow-functions',
17+
'@babel/plugin-transform-block-scoped-functions',
18+
'@babel/plugin-transform-object-super',
19+
'@babel/plugin-transform-shorthand-properties',
20+
'@babel/plugin-transform-computed-properties',
21+
'@babel/plugin-transform-for-of',
22+
['@babel/plugin-transform-spread', {loose: true, useBuiltIns: true}],
23+
'@babel/plugin-transform-parameters',
24+
['@babel/plugin-transform-destructuring', {loose: true, useBuiltIns: true}],
25+
['@babel/plugin-transform-block-scoping', {throwIfClosureRequired: true}],
26+
],
27+
};

0 commit comments

Comments
 (0)