31 lines
522 B
JavaScript
31 lines
522 B
JavaScript
import typescript from '@rollup/plugin-typescript';
|
|
|
|
/**
|
|
* @type {import('rollup').RollupOptions}
|
|
*/
|
|
const config = {
|
|
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({
|
|
declarationDir: 'lib',
|
|
include: ['src/**/*'],
|
|
tsconfig: './tsconfig.json',
|
|
}),
|
|
],
|
|
};
|
|
|
|
export default config;
|