UNPKG

anujs-stb

Version:

a React16-compact mini framework

41 lines (35 loc) 1.08 kB
import babel from "rollup-plugin-babel"; import replace from "rollup-plugin-re"; import filesize from "rollup-plugin-filesize"; import cleanup from "rollup-plugin-cleanup"; const license = require("rollup-plugin-license"); const json = require("../../package.json"); //const importAlias = require('rollup-plugin-import-alias'); export default { entry: "./scripts/build/shallowCompare.index.js", format: "umd", exports: "default", dest: "./lib/shallowCompare.js", plugins: [ babel(), license({ banner: `shallowCompares补丁 by 司徒正美 Copyright ${JSON.stringify(new Date()).replace(/T.*|"/g,"")} IE9+ ` }), cleanup(), replace({ // ... do replace before commonjs patterns: [ { test: "VERSION", // string or function to replaced with replace: json.version } ] }), filesize() ], moduleName: "shallowCompare", useStrict: false };