mirror of
https://github.com/pissang/claygl.git
synced 2026-02-01 17:27:08 +00:00
24 lines
370 B
JavaScript
24 lines
370 B
JavaScript
import typescript from '@rollup/plugin-typescript';
|
|
|
|
export default {
|
|
input: 'src/claygl.ts',
|
|
plugins: [
|
|
typescript({
|
|
target: 'ES5'
|
|
})
|
|
],
|
|
output: [
|
|
{
|
|
format: 'umd',
|
|
name: 'clay',
|
|
sourcemap: true,
|
|
file: 'dist/claygl.js'
|
|
},
|
|
{
|
|
format: 'es',
|
|
sourcemap: true,
|
|
file: 'dist/claygl.es.js'
|
|
}
|
|
]
|
|
};
|