UNPKG

@uupaa/messagepassing

Version:

Implementation of lightweight message passing logic for TypeScript.

38 lines (35 loc) 1.24 kB
import pkg from "./package.json"; // { pkg.rollup.output.es5.* } 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 -> ES5 bundle --- export default { input: pkg.rollup.cjs.input, output: { file: pkg.rollup.cjs.output, format: "cjs", // CommonJS //name: pkg.rollup.cjs.name, intro: "", outro: "", banner: ``, footer: ``, }, plugins: [ resolve({ mainFields: ['module'] }), commonjs(), //buble(), // ES6 -> ES5 eslint({ configFile: path.resolve("./.eslintrc.cjs.json") }), cleanup(), // license({ // banner: "Copyright 2019 xxxx", // //thirdParty: { // // output: path.join(__dirname, "dependencies.txt"), // // includePrivate: true, // Default is false. // //}, // }), ], }