UNPKG

js-calendar-converter

Version:

Chinese Lunar Calendar (Luminous Calendar) and Western Yuan Gregorian Calendar Interconversion JavaScript Library

33 lines (30 loc) 693 B
import { babel } from "@rollup/plugin-babel"; import fileSize from "rollup-plugin-filesize"; const libraryName = 'js-calendar-converter'; export default { input: "src/index.js", output: [ { file: `./dist/${libraryName}.cjs`, format: "cjs", }, { file: `./dist/${libraryName}.mjs`, format: "esm", }, { file: `./dist/${libraryName}.js`, format: "iife", name: 'calendar', exports: "default", //"auto" | "default"| "named"| "none" sourcemap: true, }, ], plugins: [ babel({ babelHelpers: "bundled", presets: ["@babel/preset-env"], }), fileSize(), ], }