28 lines
606 B
TypeScript
28 lines
606 B
TypeScript
import type { RollupOptions } from 'rollup'
|
|
import typescript from '@rollup/plugin-typescript'
|
|
|
|
|
|
const config: RollupOptions = {
|
|
input: ['src/index.ts'],
|
|
output: {
|
|
dir: 'lib',
|
|
format: 'esm',
|
|
},
|
|
external: [
|
|
'pixi.js', 'pixi-viewport', '@stomp/stompjs', 'mqtt', 'eventemitter3', '@pixi/graphics-extras'
|
|
],
|
|
logLevel: 'debug',
|
|
plugins: [
|
|
typescript({
|
|
compilerOptions: { declaration: true },
|
|
declaration: true,
|
|
declarationDir: 'lib',
|
|
declarationMap: true,
|
|
include: ['src/**/*'],
|
|
tsconfig: './tsconfig.json',
|
|
})
|
|
],
|
|
}
|
|
|
|
export default config
|