UNPKG

icemilk

Version:

Shanghai jinbaozheng easy network technology Co.,Ltd sdk

26 lines 740 B
import resolve from '@rollup/plugin-node-resolve'; import json from '@rollup/plugin-json'; import typescript from 'rollup-plugin-typescript'; import commonjs from 'rollup-plugin-commonjs'; import olaf from '@olaf-mix/rollup-plugin-olaf-mix'; module.exports = () => { return { input: './src/index.ts', output: { globals: { moment: 'moment', axios: 'axios' }, file: './lib/index.js', format: 'cjs' }, plugins: [ olaf(), json(), resolve(), commonjs(), typescript({lib: ["es5", "es6", "dom"], target: "es5"}) ], external: [ 'moment', 'axios' ] } };