Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Commit 54d3cee

Browse files
committedDec 29, 2018
Merge branch 'master' into custom-builder
# Conflicts: # package.json
2 parents 7fc31d9 + 0752385 commit 54d3cee

File tree

3 files changed

+25
-15
lines changed

3 files changed

+25
-15
lines changed
 

‎package-lock.json

+17-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rollup-plugin-babel",
3-
"version": "4.1.0",
3+
"version": "4.2.0",
44
"description": "Seamless integration between Rollup and Babel.",
55
"main": "dist/rollup-plugin-babel.cjs.js",
66
"module": "dist/rollup-plugin-babel.esm.js",
@@ -36,7 +36,7 @@
3636
},
3737
"peerDependencies": {
3838
"@babel/core": "7 || ^7.0.0-rc.2",
39-
"rollup": ">=0.60.0 <1"
39+
"rollup": ">=0.60.0 <2"
4040
},
4141
"devDependencies": {
4242
"@babel/core": "^7.0.0",
@@ -52,7 +52,7 @@
5252
"lint-staged": "^7.2.2",
5353
"mocha": "^5.2.0",
5454
"prettier": "^1.15.3",
55-
"rollup": "^0.64.1",
55+
"rollup": "^1.0.0",
5656
"rollup-plugin-buble": "^0.19.2",
5757
"rollup-plugin-json": "^3.0.0",
5858
"source-map": "^0.6.1",

‎test/test.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ describe('rollup-plugin-babel', function() {
6363
)
6464
.then(bundle => {
6565
return bundle.generate(Object.assign({ format: 'cjs' }, generateOptions));
66-
});
66+
})
67+
.then(({ output: [generated] }) => generated);
6768
}
6869

6970
it('runs code through babel', () => {
@@ -134,7 +135,7 @@ describe('rollup-plugin-babel', function() {
134135
plugins: [babelPlugin()],
135136
})
136137
.then(bundle => bundle.generate({ output: { format: 'esm' } }))
137-
.then(({ code }) => {
138+
.then(({ output: [{ code }] }) => {
138139
assert.ok(/class Foo/.test(code));
139140
assert.ok(/var Bar/.test(code));
140141
assert.ok(!/class Bar/.test(code));
@@ -281,7 +282,7 @@ describe('rollup-plugin-babel', function() {
281282
.then(bundle => {
282283
return bundle.generate({ format: 'cjs' });
283284
})
284-
.then(({ code }) => {
285+
.then(({ output: [{ code }] }) => {
285286
assert.ok(code.includes('// Generated by some custom loader'), 'adds the custom comment');
286287
assert.ok(code.includes('console.foobaz'), 'runs the plugin');
287288
});
@@ -316,7 +317,7 @@ describe('rollup-plugin-babel', function() {
316317
.then(bundle => {
317318
return bundle.generate({ format: 'cjs' });
318319
})
319-
.then(({ code }) => {
320+
.then(({ output: [{ code }] }) => {
320321
assert.ok(!code.includes('// Generated by some custom loader'), 'does not add the comment to ignored file');
321322
assert.ok(!code.includes('console.foobaz'), 'does not run the plugin on ignored file');
322323
});

0 commit comments

Comments
 (0)
This repository has been archived.