mirror of
https://gitee.com/antv/g6.git
synced 2024-12-03 12:18:40 +08:00
da5297cd8c
* refactor: adjust exports, use enum replace const enum * fix: fix issue that unexpected z attr * feat(utils): add TupleMap and getCacheKey * feat(elements): add 3d elements * feat(plugins): add 3d light * refactor: adjust 3d renderer * refactor: adjust exports * test: add demos * chore: config packages.json, jest config * test: fix test case * chore: update g6-extension-3d version * chore: setup project configs * test: fix demo type issue * chore: config tsconfig for type-check
31 lines
763 B
JavaScript
31 lines
763 B
JavaScript
import commonjs from '@rollup/plugin-commonjs';
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
import terser from '@rollup/plugin-terser';
|
|
import typescript from '@rollup/plugin-typescript';
|
|
import nodePolyfills from 'rollup-plugin-polyfill-node';
|
|
import { visualizer } from 'rollup-plugin-visualizer';
|
|
|
|
const isBundleVis = !!process.env.BUNDLE_VIS;
|
|
|
|
export default [
|
|
{
|
|
input: 'src/index.ts',
|
|
output: {
|
|
file: 'dist/g6-extension-3d.min.js',
|
|
name: 'g6-extension-3d',
|
|
format: 'umd',
|
|
sourcemap: false,
|
|
},
|
|
plugins: [
|
|
nodePolyfills(),
|
|
resolve(),
|
|
commonjs(),
|
|
typescript({
|
|
tsconfig: 'tsconfig.build.json',
|
|
}),
|
|
terser(),
|
|
...(isBundleVis ? [visualizer()] : []),
|
|
],
|
|
},
|
|
];
|