Skip to content
This repository has been archived by the owner on Mar 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #143 from Comandeer/greenkeeper/rollup-1.0.0
Browse files Browse the repository at this point in the history
Update rollup to the latest version 🚀
  • Loading branch information
Comandeer committed Dec 30, 2018
2 parents 1c2ab27 + 3adc02d commit a3d8a34
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 43 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

---

## [7.0.0]
### Added
* [#143] **BREAKING CHANGE**: add support for Rollup `^1.0.0`.

### Removed
* [#143] **BREAKING CHANGE**: remove support for Rollup < 1:
* [#143] **BREAKING CHANGE**: remove support for legacy syntax of banner.

## [6.2.0] – 2018-11-22
### Added
* [#138] Ability to add plugins to Babel.
Expand Down Expand Up @@ -152,7 +160,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
[#133]: https://github.com/Comandeer/rollup-plugin-babel-minify/issues/133
[#137]: https://github.com/Comandeer/rollup-plugin-babel-minify/issues/137
[#138]: https://github.com/Comandeer/rollup-plugin-babel-minify/issues/138
[#143]: https://github.com/Comandeer/rollup-plugin-babel-minify/pull/143

[7.0.0]: https://github.com/Comandeer/rollup-plugin-babel-minify/compare/v6.2.0...v7.0.0
[6.2.0]: https://github.com/Comandeer/rollup-plugin-babel-minify/compare/v6.1.1...v6.2.0
[6.1.1]: https://github.com/Comandeer/rollup-plugin-babel-minify/compare/v6.1.0...v6.1.1
[6.1.0]: https://github.com/Comandeer/rollup-plugin-babel-minify/compare/v6.0.0...v6.1.0
Expand Down
28 changes: 16 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -84,7 +84,7 @@
"mocha": "^5.0.0",
"nyc": "^13.0.1",
"rimraf": "^2.6.2",
"rollup": "^0.68.0",
"rollup": "^1.0.0",
"sourcemap-validator": "^1.0.6"
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -11,7 +11,7 @@ function minify( options = {} ) {
return {
name: 'babel-minify',

transformBundle( bundle, { banner: bundleBanner } ) {
renderChunk( bundle, chunkInfo, { banner: bundleBanner } ) {
const minifyOptions = filterMinifyOptions( options );
const babelConf = {
presets: [ [ minifyPreset, minifyOptions ] ],
Expand Down
14 changes: 0 additions & 14 deletions tests/cli.js
Expand Up @@ -53,18 +53,4 @@ describe( 'Rollup CLI', () => {
} ).not.to.throw();
} );
} );

it( 'banner inherited (legacy syntax)', () => {
return executeRollupCmd( 'bannerInheritLegacy' ).then( () => {
assertArtifacts();

const { [ 'bundle.js' ]: code, [ 'bundle.js.map' ]: map } = getArtifacts();

expect( code ).to.match( /^\/\* hublabubla \*\// );
expect( map ).to.not.equal( null );
expect( () => {
validateSourcemap( code, map );
} ).not.to.throw();
} );
} );
} );
14 changes: 0 additions & 14 deletions tests/fixtures/simple-project/rollup.config.bannerInheritLegacy.js

This file was deleted.

2 changes: 1 addition & 1 deletion tests/helpers/createTransformTest.js
Expand Up @@ -35,7 +35,7 @@ function createTransformTest( {

return rollup( rollupOptions ).then( ( bundle ) => {
return bundle.generate( bundleOptions );
} ).then( ( result ) => {
} ).then( ( { output: [ result ] } ) => {
return {
bundle: result,
transpiled: babeledCode
Expand Down

0 comments on commit a3d8a34

Please sign in to comment.