@awayjs/graphics
Version:
AwayJS graphics classes
30 lines (29 loc) • 623 B
JavaScript
import nodeResolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import terser from '@rollup/plugin-terser';
export default {
input: './dist/index.js',
output: {
name: 'AwayjsGraphics',
globals: {
'@awayjs/core': 'AwayjsCore',
'@awayjs/stage': 'AwayjsStage',
'@awayjs/view': 'AwayjsView',
'@awayjs/renderer': 'AwayjsRenderer'
},
sourcemap: true,
format: 'umd',
file: './bundle/awayjs-graphics.umd.js'
},
external: [
'@awayjs/core',
'@awayjs/stage',
'@awayjs/view',
'@awayjs/renderer'
],
plugins: [
nodeResolve(),
commonjs(),
terser(),
]
};