2021-05-17 00:27:47 +02:00
|
|
|
// rollup.config.js
|
|
|
|
|
import typescript from 'rollup-plugin-typescript2';
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
input: 'src/server/main.ts',
|
|
|
|
|
output: {
|
|
|
|
|
dir: 'build/server',
|
|
|
|
|
format: 'es',
|
|
|
|
|
},
|
2021-05-17 01:12:39 +02:00
|
|
|
external: [
|
2021-05-29 17:58:05 +02:00
|
|
|
"better-sqlite3",
|
|
|
|
|
"compression",
|
|
|
|
|
"exif",
|
2021-05-17 01:12:39 +02:00
|
|
|
"express",
|
|
|
|
|
"fs",
|
|
|
|
|
"image-size",
|
2021-05-29 17:58:05 +02:00
|
|
|
"multer",
|
|
|
|
|
"path",
|
2021-05-17 01:12:39 +02:00
|
|
|
"sharp",
|
|
|
|
|
"url",
|
2021-05-29 17:58:05 +02:00
|
|
|
"v8",
|
|
|
|
|
"ws",
|
2021-05-17 01:12:39 +02:00
|
|
|
],
|
2021-05-22 01:51:44 +02:00
|
|
|
plugins: [typescript()],
|
2021-05-17 00:27:47 +02:00
|
|
|
};
|