mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-23 11:36:13 +02:00
36 lines
754 B
JavaScript
Executable File
36 lines
754 B
JavaScript
Executable File
import resolve from "@rollup/plugin-node-resolve";
|
|
import { terser } from "rollup-plugin-terser";
|
|
import typescript from "@rollup/plugin-typescript";
|
|
|
|
export default [
|
|
{
|
|
input: "./webview-src/index.ts",
|
|
output: {
|
|
dir: "./webview-dist",
|
|
entryFileNames: "[name].min.js",
|
|
format: "esm",
|
|
},
|
|
plugins: [
|
|
resolve(),
|
|
terser(),
|
|
typescript({
|
|
tsconfig: "./webview-src/tsconfig.json",
|
|
}),
|
|
],
|
|
},
|
|
{
|
|
input: "./webview-src/index.ts",
|
|
external: ['@tauri-apps/api/tauri'],
|
|
output: {
|
|
dir: "./webview-dist",
|
|
entryFileNames: "[name].mjs",
|
|
format: "esm",
|
|
},
|
|
plugins: [
|
|
typescript({
|
|
tsconfig: "./webview-src/tsconfig.json",
|
|
}),
|
|
],
|
|
},
|
|
];
|