mirror of
https://github.com/konvajs/konva.git
synced 2025-08-20 05:08:33 +08:00
33 lines
618 B
JavaScript
33 lines
618 B
JavaScript
// import resolve from 'rollup-plugin-node-resolve';
|
|
import typescript from 'rollup-plugin-typescript2';
|
|
|
|
export default {
|
|
input: `src/index.ts`,
|
|
output: [
|
|
{
|
|
file: 'konva.js',
|
|
name: 'Konva',
|
|
format: 'umd',
|
|
sourcemap: false,
|
|
freeze: false,
|
|
},
|
|
],
|
|
external: [],
|
|
watch: {
|
|
include: 'src/**',
|
|
},
|
|
plugins: [
|
|
// Compile TypeScript files
|
|
typescript({
|
|
useTsconfigDeclarationDir: true,
|
|
abortOnError: false,
|
|
removeComments: false,
|
|
tsconfigOverride: {
|
|
compilerOptions: {
|
|
module: 'ES2020',
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
};
|