Skip to content

Commit

Permalink
update babel-preset-es2015-rollup for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored and Andarist committed Dec 17, 2019
1 parent abe6986 commit ba7f03e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
10 changes: 6 additions & 4 deletions packages/rollup-plugin-babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
"version": "2.6.1",
"description": "Seamless integration between Rollup and Babel.",
"main": "dist/rollup-plugin-babel.cjs.js",
"jsnext:main": "dist/rollup-plugin-babel.es6.js",
"jsnext:main": "dist/rollup-plugin-babel.es.js",
"files": [
"src",
"dist",
"dist/rollup-plugin-babel.cjs.js",
"dist/rollup-plugin-babel.es.js",
"README"
],
"keywords": [
Expand Down Expand Up @@ -38,13 +39,14 @@
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.9.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-es2015-rollup": "^1.1.1",
"babel-preset-es2015-rollup": "^2.0.0",
"buble": "^0.14.2",
"eslint": "^3.12.0",
"mocha": "^3.2.0",
"rollup": "^0.37.0",
"rollup-plugin-buble": "^0.14.0",
"source-map": "^0.5.6"
"source-map": "^0.5.6",
"source-map-support": "^0.4.6"
},
"repository": {
"type": "git",
Expand Down
5 changes: 3 additions & 2 deletions packages/rollup-plugin-babel/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default {
external: external,
targets: [
{ dest: 'dist/rollup-plugin-babel.cjs.js', format: 'cjs' },
{ dest: 'dist/rollup-plugin-babel.es6.js', format: 'es6' }
]
{ dest: 'dist/rollup-plugin-babel.es.js', format: 'es' }
],
sourceMap: true
};
3 changes: 2 additions & 1 deletion packages/rollup-plugin-babel/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ var rollup = require( 'rollup' );
var SourceMapConsumer = require( 'source-map' ).SourceMapConsumer;
var babelPlugin = require( '..' );

require( 'source-map-support' ).install();

process.chdir( __dirname );

function getLocation ( source, charIndex ) {
Expand All @@ -29,7 +31,6 @@ function getLocation ( source, charIndex ) {

const consoleWarn = console.warn;


describe( 'rollup-plugin-babel', function () {
this.timeout( 15000 );

Expand Down

0 comments on commit ba7f03e

Please sign in to comment.