Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Build out ESM, CJS, UMD, Script, UMD Minified, and Script Minified
{
"builds": [{
"input": "lib/**/*.js",
"output": "dist/esm",
"outputType": "module",
"debug": true
}, {
"input": "lib/**/*.js",
"output": "dist/cjs",
"outputType": "commonjs",
"debug": true
}, {
"input": "lib/index.js",
"output": "dist/sample-library.umd.js",
"outputType": "umd",
"debug": true
}, {
"input": "lib/index.js",
"output": "dist/sample-library.js",
"debug": true
}, {
"input": "lib/index.js",
"output": "dist/sample-library.umd.min.js",
"outputType": "umd"
}, {
"input": "lib/index.js",
"output": "dist/sample-library.min.js"
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.