@web/dev-server-rollup
Advanced tools
Comparing version 0.2.5 to 0.2.6
# @web/dev-server-rollup | ||
## 0.2.6 | ||
### Patch Changes | ||
- f22bd2f: add error messages | ||
## 0.2.5 | ||
@@ -4,0 +10,0 @@ |
@@ -6,2 +6,5 @@ "use strict"; | ||
function fromRollup(rollupPluginFn, rollupInputOptions = {}) { | ||
if (typeof rollupPluginFn !== 'function') { | ||
throw new Error('fromRollup should be called with a rollup plugin function.'); | ||
} | ||
// return a function wrapper which intercepts creation of the rollup plugin | ||
@@ -8,0 +11,0 @@ return function wrappedRollupPluginFn(...args) { |
@@ -35,2 +35,5 @@ "use strict"; | ||
function rollupAdapter(rollupPlugin, rollupInputOptions = {}) { | ||
if (typeof rollupPlugin !== 'object') { | ||
throw new Error('rollupAdapter should be called with a rollup plugin object.'); | ||
} | ||
const transformedFiles = new Set(); | ||
@@ -37,0 +40,0 @@ let rollupPluginContexts; |
{ | ||
"name": "@web/dev-server-rollup", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -11,2 +11,6 @@ import { InputOptions, Plugin as RollupPlugin } from 'rollup'; | ||
) { | ||
if (typeof rollupPluginFn !== 'function') { | ||
throw new Error('fromRollup should be called with a rollup plugin function.'); | ||
} | ||
// return a function wrapper which intercepts creation of the rollup plugin | ||
@@ -13,0 +17,0 @@ return function wrappedRollupPluginFn(...args: T) { |
@@ -56,2 +56,6 @@ /* eslint-disable no-control-regex */ | ||
): WdsPlugin { | ||
if (typeof rollupPlugin !== 'object') { | ||
throw new Error('rollupAdapter should be called with a rollup plugin object.'); | ||
} | ||
const transformedFiles = new Set(); | ||
@@ -58,0 +62,0 @@ let rollupPluginContexts: RollupPluginContexts; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
59779
894