karma-rollup-preprocessor
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -8,2 +8,11 @@ # Change Log | ||
## [4.0.2] - 2017-07-30 | ||
### Changed | ||
- Require at least Rollup v0.45. [#21](https://github.com/jlmakes/karma-rollup-preprocessor/pull/21) | ||
### Changed | ||
- Update depedency versions. | ||
## [4.0.1] - 2017-07-14 | ||
@@ -10,0 +19,0 @@ |
@@ -14,2 +14,3 @@ 'use strict' | ||
let cache | ||
let buffer | ||
@@ -42,2 +43,4 @@ /** | ||
buffer = bundle | ||
/** | ||
@@ -66,11 +69,11 @@ * Map all dependencies of the current file | ||
// Return the promise so that errors will be handled by the `catch` statement below. | ||
return Promise.resolve(bundle.generate(config)).then((generated) => { | ||
const processed = (config.sourceMap === 'inline') | ||
? generated.code + `\n//# sourceMappingURL=${generated.map.toUrl()}\n` | ||
: generated.code | ||
return bundle.generate(config) | ||
}) | ||
.then(generated => { | ||
const processed = (config.sourceMap === 'inline') | ||
? generated.code + `\n//# sourceMappingURL=${generated.map.toUrl()}\n` | ||
: generated.code | ||
cache = bundle | ||
done(null, processed) | ||
}) | ||
cache = buffer | ||
done(null, processed) | ||
}) | ||
@@ -77,0 +80,0 @@ .catch(error => { |
{ | ||
"name": "karma-rollup-preprocessor", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "Karma preprocessor to bundle ES2015 modules using Rollup", | ||
@@ -28,7 +28,7 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"rollup": "^0.x", | ||
"rollup": "^0.45", | ||
"lodash": "^4.17.4" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^3.11.1", | ||
"eslint": "^4.2.0", | ||
"jasmine-core": "^2.4.1", | ||
@@ -40,3 +40,3 @@ "karma": "^1.3.0", | ||
"rollup-plugin-commonjs": "^8.0.2", | ||
"rollup-plugin-node-resolve": "^2.0.0" | ||
"rollup-plugin-node-resolve": "^3.0.0" | ||
}, | ||
@@ -43,0 +43,0 @@ "author": "Julian Lloyd", |
96313
203
+ Addedrollup@0.45.2(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedsource-map-support@0.4.18(transitive)
- Removed@types/estree@0.0.39(transitive)
- Removed@types/node@22.10.10(transitive)
- Removedrollup@0.68.2(transitive)
- Removedundici-types@6.20.0(transitive)
Updatedrollup@^0.45