File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3232 "no-implied-eval": 2,
3333 "no-new-func": 2,
3434 "guard-for-in": 2,
35- "eqeqeq": 1 ,
35+ "eqeqeq": 0 ,
3636 "no-else-return": 2,
3737 "no-redeclare": 2,
3838 "no-dupe-keys": 2,
4444 "no-shadow-restricted-names": 2,
4545 "handle-callback-err": 0,
4646 "no-lonely-if": 2,
47- "keyword-spacing": 2,
4847 "constructor-super": 2,
4948 "no-this-before-super": 2,
5049 "no-dupe-class-members": 2,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1717 },
1818 "babel" : {
1919 "presets" : [
20- " es2015-minimal" ,
21- " stage-0" ,
22- " react"
20+ " es2015" ,
21+ " stage-0"
2322 ],
2423 "plugins" : [
2524 " transform-object-rest-spread" ,
3130 ]
3231 ]
3332 },
33+ "files" : [
34+ " src" ,
35+ " dist"
36+ ],
3437 "keywords" : [
3538 " hyperscript" ,
3639 " html" ,
4952 "homepage" : " https://github.com/developit/vhtml" ,
5053 "devDependencies" : {
5154 "babel-core" : " ^6.6.4" ,
52- "babel-eslint" : " ^5 .0.0" ,
55+ "babel-eslint" : " ^7 .0.0" ,
5356 "babel-plugin-transform-object-rest-spread" : " ^6.6.4" ,
5457 "babel-plugin-transform-react-jsx" : " ^6.6.5" ,
55- "babel-preset-es2015-minimal" : " ^1.1.0" ,
56- "babel-preset-es2015-minimal-rollup" : " ^1.1.0" ,
57- "babel-preset-react" : " ^6.5.0" ,
58+ "babel-preset-es2015" : " ^6.9.0" ,
5859 "babel-preset-stage-0" : " ^6.5.0" ,
5960 "babel-register" : " ^6.7.2" ,
6061 "chai" : " ^3.5.0" ,
61- "eslint" : " ~2.2 .0" ,
62+ "eslint" : " ^3.1 .0" ,
6263 "gzip-size-cli" : " ^1.0.0" ,
6364 "mkdirp" : " ^0.5.1" ,
64- "mocha" : " ^2.4.5 " ,
65- "npm-run-all" : " ^1.5.1 " ,
65+ "mocha" : " ^3.1.2 " ,
66+ "npm-run-all" : " ^2.3.0 " ,
6667 "pretty-bytes-cli" : " ^1.0.0" ,
67- "rollup" : " ^0.25.4 " ,
68+ "rollup" : " ^0.36.3 " ,
6869 "rollup-plugin-babel" : " ^2.4.0" ,
70+ "rollup-plugin-es3" : " ^1.0.3" ,
6971 "uglify-js" : " ^2.6.2"
7072 }
7173}
Original file line number Diff line number Diff line change 11import path from 'path' ;
22import fs from 'fs' ;
33import babel from 'rollup-plugin-babel' ;
4+ import es3 from 'rollup-plugin-es3' ;
45
56let pkg = JSON . parse ( fs . readFileSync ( './package.json' ) ) ;
6- let external = Object . keys ( pkg . peerDependencies || { } ) . concat ( Object . keys ( pkg . dependencies || { } ) ) ;
77
88export default {
99 entry : pkg [ 'jsnext:main' ] ,
1010 dest : pkg . main ,
1111 sourceMap : path . resolve ( pkg . main ) ,
1212 moduleName : pkg . amdName ,
13+ exports : 'default' ,
1314 format : 'umd' ,
14- external,
1515 plugins : [
1616 babel ( {
1717 babelrc : false ,
1818 comments : false ,
19- exclude : 'node_modules/**' ,
2019 presets : [
21- 'es2015-minimal-rollup'
20+ [ 'es2015' , { loose : true , modules : false } ]
2221 ] . concat ( pkg . babel . presets . slice ( 1 ) ) ,
23- plugins : require ( 'babel-preset-es2015-minimal-rollup' ) . plugins . concat ( [
24- [ 'transform-react-jsx' , { pragma :'h' } ]
25- ] )
26- } )
22+ plugins : pkg . babel . plugins
23+ } ) ,
24+ es3 ( )
2725 ]
2826} ;
You can’t perform that action at this time.
0 commit comments