Skip to content

Commit

Permalink
Merge pull request #8 from TrySound/tidy-up
Browse files Browse the repository at this point in the history
Tidy up
  • Loading branch information
Rich-Harris authored and Andarist committed Apr 11, 2020
1 parent fcfab7b commit 360adcb
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 14 deletions.
4 changes: 4 additions & 0 deletions packages/rollup-plugin-babel/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: node_js
node_js:
- 'stable'
- '0.12'
6 changes: 6 additions & 0 deletions packages/rollup-plugin-babel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# rollup-plugin-babel changelog

## 2.0.1

* Use object-assign ponyfill
* Add travis support
* Fix test

## 2.0.0

* Babel 6 compatible
Expand Down
9 changes: 1 addition & 8 deletions packages/rollup-plugin-babel/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
var path = require( 'path' );
var babel = require( 'babel-core' );
var createFilter = require( 'rollup-pluginutils' ).createFilter;

var assign = Object.assign || function ( target, source ) {
Object.keys( source ).forEach( function ( key ) {
target[ key ] = source[ key ];
});

return target;
};
var assign = require( 'object-assign' );

module.exports = function ( options ) {
options = assign( {}, options || {} );
Expand Down
29 changes: 23 additions & 6 deletions packages/rollup-plugin-babel/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@
{
"name": "rollup-plugin-babel",
"version": "2.0.0",
"devDependencies": {
"eslint": "^1.7.2",
"mocha": "^2.3.3",
"rollup": "^0.20.0"
},
"description": "Seamless integration between Rollup and Babel.",
"keywords": [
"rollup-plugin",
"babel",
"es2015",
"es6"
],
"homepage": "https://github.com/rollup/rollup-plugin-babel",
"author": "Rich Harris",
"contributors": [
"Bogdan Chadkin <[email protected]>"
],
"scripts": {
"test": "mocha",
"prepublish": "npm run test"
},
"dependencies": {
"babel-core": "6",
"object-assign": "^4.0.1",
"rollup-pluginutils": "^1.1.0"
},
"devDependencies": {
"babel-preset-es2015-rollup": "^1.0.0",
"eslint": "^1.7.2",
"mocha": "^2.3.3",
"rollup": "^0.20.0"
},
"repository": {
"type": "git",
"url": "https://github.com/rollup/rollup-plugin-babel"
"url": "git+https://github.com/rollup/rollup-plugin-babel.git"
},
"bugs": {
"url": "https://github.com/rollup/rollup-plugin-babel/issues"
}
}

0 comments on commit 360adcb

Please sign in to comment.