graphic-pixi/rollup.config.ts
2023-12-14 13:07:42 +08:00

26 lines
505 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'
],
logLevel: 'debug',
plugins: [
typescript({
declaration: true,
declarationDir: 'lib',
include: ['src/**/*'],
tsconfig: './tsconfig.json',
})
],
}
export default config