2021-09-28 02:15:17 +03:00
|
|
|
import { nodeResolve } from '@rollup/plugin-node-resolve'
|
|
|
|
import typescript from '@rollup/plugin-typescript'
|
2023-11-13 18:13:01 +03:00
|
|
|
import terser from '@rollup/plugin-terser'
|
2021-09-28 02:15:17 +03:00
|
|
|
|
|
|
|
export default {
|
2022-01-04 14:57:50 +03:00
|
|
|
input: './webview-src/index.ts',
|
|
|
|
output: {
|
|
|
|
dir: './webview-dist',
|
|
|
|
entryFileNames: '[name].js',
|
|
|
|
format: 'es',
|
|
|
|
exports: 'auto'
|
|
|
|
},
|
|
|
|
plugins: [
|
2021-09-28 02:15:17 +03:00
|
|
|
nodeResolve(),
|
2022-01-04 14:57:50 +03:00
|
|
|
terser(),
|
|
|
|
typescript({
|
|
|
|
tsconfig: './webview-src/tsconfig.json',
|
|
|
|
moduleResolution: 'node'
|
|
|
|
})
|
|
|
|
]
|
2021-09-28 02:15:17 +03:00
|
|
|
}
|