mirror of
https://github.com/JosunLP/BrowserExtensionTemplate.git
synced 2025-06-21 10:01:08 +00:00
29 lines
562 B
JavaScript
29 lines
562 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/settings.ts"),
|
|
output: {
|
|
entryFileNames: "settings.js",
|
|
dir: resolve(__dirname, "dist/js"),
|
|
},
|
|
},
|
|
sourcemap: true,
|
|
},
|
|
plugins: [tsconfigPaths()],
|
|
resolve: {
|
|
extensions: [".tsx", ".ts"],
|
|
},
|
|
esbuild: {
|
|
include: /.*\.tsx?$/,
|
|
exclude: [
|
|
/node_modules/,
|
|
/dist/,
|
|
/src\/background\.ts/,
|
|
/src\/app\.ts/,
|
|
],
|
|
},
|
|
});
|