@uupaa/messagepassing
Version:
Implementation of lightweight message passing logic for TypeScript.
37 lines (34 loc) • 1.19 kB
JavaScript
import pkg from "./package.json"; // { pkg.rollup.output.esm.* }
import path from "path";
import resolve from "rollup-plugin-node-resolve"; // resolve node_modules/index.js to ES6
//import commonjs from "rollup-plugin-commonjs"; // convert CommonJS -> ES6
//import buble from "rollup-plugin-buble"; // convert ES6 -> ES5
import { eslint } from "rollup-plugin-eslint"; // ESLint
import cleanup from "rollup-plugin-cleanup"; // clear comments and empty lines
//import license from "rollup-plugin-license"; // add License header
// --- ES5/ES6/CommonJS/ESModules -> ES6 bundle ---
export default {
input: pkg.rollup.esm.input,
output: {
file: pkg.rollup.esm.output,
format: "es",
intro: "",
outro: "",
banner: "",
footer: "",
},
plugins: [
resolve({ mainFields: ['module'] }),
//commonjs(),
//buble(), // ES6 -> ES5
eslint({ configFile: path.resolve("./.eslintrc") }),
cleanup(),
//license({
// banner: "Copyright 2019 xxxx",
// //thirdParty: {
// // output: path.join(__dirname, "dependencies.txt"),
// // includePrivate: true, // Default is false.
// //},
//}),
],
}