UNPKG

anujs-stb

Version:

a React16-compact mini framework

47 lines (37 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 { input: './packages/render/dom/index.js', output: { strict: false, format: 'umd', exports: 'default', file: './dist/React.js', name: 'React', }, plugins: [ babel(), license({ banner: `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() ], };