Skip to content

Commit

Permalink
feat(bundler): add new line after banner
Browse files Browse the repository at this point in the history
BREAKING CHANGE

closes #48
  • Loading branch information
Comandeer committed Feb 3, 2018
1 parent 8bac7d8 commit b980512
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ function getRollupConfig( metadata, isEs5 ) {
convertCJS(),
minify( {
comments: false,
banner
banner,
bannerNewLine: true
} )
];

Expand Down
2 changes: 1 addition & 1 deletion tests/bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function checkFiles( files ) {

function checkBanner( file ) {
const fileContent = fs.readFileSync( file, 'utf8' );
const banner = fileContent.match( /^\/\*!(.+?)\*\// );
const banner = fileContent.match( /^\/\*!(.+?)\*\/\n{1}/ );

expect( banner ).to.not.be.null;
}
Expand Down

0 comments on commit b980512

Please sign in to comment.