Commit 0e38c8f6 authored by Fred Chasen's avatar Fred Chasen

Fix passing polyfill config to previewer, fix PagedModule rollup config

parent b0a460f6
......@@ -6,7 +6,9 @@ import pkg from './package.json';
const plugins = [
resolve(),
commonjs(),
commonjs({
include: 'node_modules/**'
}),
json()
];
......@@ -24,13 +26,12 @@ export default [
{
input: pkg.module,
output: [
{
name: "PagedModule",
file: "./dist/paged.esm.js",
format: 'es'
},
]
output: {
name: "PagedModule",
file: "./dist/paged.esm.js",
format: 'es'
},
plugins: plugins
},
{
......
......@@ -25,8 +25,7 @@ let config = window.PagedConfig || {
renderTo: undefined
};
let previewer = new Previewer(config.content, config.stylesheets, config.renderTo);
let previewer = new Previewer();
ready.then(async function () {
let done;
......@@ -35,7 +34,7 @@ ready.then(async function () {
}
if(config.auto !== false) {
done = await previewer.preview();
done = await previewer.preview(config.content, config.stylesheets, config.renderTo);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment