27 lines
514 B
JavaScript
27 lines
514 B
JavaScript
// -*- javascript -*-
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
import typescript from '@rollup/plugin-typescript';
|
|
import path from 'path';
|
|
|
|
const babylon = '@babylonjs/core/Legacy/legacy';
|
|
|
|
export default {
|
|
input: 'src/index.ts',
|
|
plugins: [
|
|
resolve({ browser: true }),
|
|
typescript({ incremental: true }),
|
|
],
|
|
external: [
|
|
babylon,
|
|
],
|
|
output: {
|
|
file: 'index.js',
|
|
format: 'umd',
|
|
name: 'Main',
|
|
sourcemap: true,
|
|
globals: {
|
|
[babylon]: 'BABYLON',
|
|
},
|
|
},
|
|
};
|