Skip to content

Commit

Permalink
update to export to es5
Browse files Browse the repository at this point in the history
  • Loading branch information
Elecweb committed Nov 29, 2017
1 parent af88410 commit c7505c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
// "modules": false
// }
// },
"env",
"es2015",
"react"
],
"plugins": [
["transform-object-rest-spread", { "useBuiltIns": true },"external-helpers"]
["transform-object-rest-spread", { "useBuiltIns": true },"external-helpers","transform-es2015-arrow-functions",{"spec":true}]
]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-craftform",
"version": "1.7.3",
"version": "1.7.4",
"description": "React form with full customizable and extensible. This library help you create form with your own style.",
"main": "dest/cf_form.es6.js",
"scripts": {
Expand Down Expand Up @@ -28,6 +28,7 @@
"babel-cli": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-es2015-arrow-functions": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.0",
"babel-preset-es2015": "^6.24.1",
Expand Down
8 changes: 2 additions & 6 deletions rollup.config.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@ export default {
exclude: 'node_modules/**',
babelrc: false,
"presets":[
{
"env": {
"modules": false
}
},
["es2015", { "modules": false }],
"react"
],
"plugins": [
["transform-object-rest-spread", { "useBuiltIns": true },"external-helpers"]
["transform-object-rest-spread", { "useBuiltIns": true, "modules": false },"external-helpers"]
]
})
]
Expand Down

0 comments on commit c7505c6

Please sign in to comment.