You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
506 B
26 lines
506 B
import typescript from '@rollup/plugin-typescript';
|
|
import terser from '@rollup/plugin-terser';
|
|
|
|
export default {
|
|
input: 'src/index.ts',
|
|
output: [
|
|
{
|
|
file: 'dist/chatbot-sdk.js',
|
|
format: 'iife',
|
|
name: 'ChatbotSDK',
|
|
sourcemap: true,
|
|
},
|
|
{
|
|
file: 'dist/chatbot-sdk.min.js',
|
|
format: 'iife',
|
|
name: 'ChatbotSDK',
|
|
sourcemap: true,
|
|
plugins: [terser()],
|
|
},
|
|
],
|
|
plugins: [
|
|
typescript({
|
|
tsconfig: './tsconfig.json',
|
|
}),
|
|
],
|
|
};
|