mirror of
https://github.com/JosunLP/BrowserExtensionTemplate.git
synced 2025-06-21 10:01:08 +00:00
24 lines
547 B
JavaScript
24 lines
547 B
JavaScript
import { defineConfig } from "vite";
|
|
import { resolve } from "path";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
rollupOptions: {
|
|
input: resolve(__dirname, "src/background.ts"),
|
|
output: {
|
|
entryFileNames: "background.js",
|
|
dir: resolve(__dirname, "dist/js"),
|
|
},
|
|
},
|
|
sourcemap: true,
|
|
},
|
|
plugins: [tsconfigPaths()],
|
|
resolve: {
|
|
extensions: [".tsx", ".ts"],
|
|
},
|
|
esbuild: {
|
|
include: /.*\.tsx?$/,
|
|
exclude: [/node_modules/, /dist/, /src\/app\.ts/, /src\/settings\.ts/],
|
|
},
|
|
});
|