2024-04-10 15:13:16 +01:00
|
|
|
// rollup.config.mjs
|
|
|
|
|
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
2024-05-01 19:06:13 +01:00
|
|
|
import commonjs from '@rollup/plugin-commonjs';
|
2024-07-23 22:33:42 +01:00
|
|
|
import json from "@rollup/plugin-json";
|
2024-08-25 02:46:26 +01:00
|
|
|
import { sentryRollupPlugin } from "@sentry/rollup-plugin";
|
2024-04-10 15:13:16 +01:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
input: 'build/index.js',
|
|
|
|
|
output: {
|
|
|
|
|
dir: "output",
|
2024-08-25 02:46:26 +01:00
|
|
|
format: 'esm',
|
|
|
|
|
sourcemap: true,
|
2024-04-10 15:13:16 +01:00
|
|
|
},
|
2024-07-23 22:33:42 +01:00
|
|
|
// external: id => id.startsWith("@resvg/resvg-js-"),
|
|
|
|
|
external: ["@resvg/resvg-js"],
|
2024-08-25 02:46:26 +01:00
|
|
|
plugins: [
|
|
|
|
|
nodeResolve(), json(), commonjs(),
|
|
|
|
|
sentryRollupPlugin({
|
|
|
|
|
org: "jade-ellis",
|
|
|
|
|
project: "jade-website-sveltekit",
|
2024-08-25 04:44:10 +01:00
|
|
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
2024-08-25 02:46:26 +01:00
|
|
|
}),
|
|
|
|
|
]
|
2024-04-10 15:13:16 +01:00
|
|
|
};
|