Commit 82d859e3 authored by Thomas Parisot's avatar Thomas Parisot

ESM export of the polyfill and manual mode

parent 76b786dd
......@@ -6,7 +6,7 @@
"license": "MIT",
"homepage": "https://pagedmedia.org",
"main": "lib/index.js",
"module": "src/index.js",
"module": "dist/paged.esm.js",
"browser": "dist/paged.js",
"dependencies": {
"@babel/polyfill": "^7.0.0",
......
......@@ -13,14 +13,19 @@ const plugins = [
];
export default [
// browser-friendly UMD build
{
input: pkg.module,
output: {
name: 'Paged',
file: pkg.browser,
format: 'umd'
},
output: [
{
name: 'Paged',
file: pkg.browser,
format: 'umd'
},
{
file: './dist/paged.esm.js',
format: 'esm'
}
],
plugins: plugins
},
......
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