Skip to content

Commit

Permalink
fix: include defined globals in content-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Nov 8, 2021
1 parent 68894d9 commit 420eebf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,6 @@ export default function browserExtension<T>(
},
rollupOptions: {
output: {
// Turn off chunking
manualChunks: undefined,
// Remove hashes from output filenames for consistent builds
entryFileNames: "[name].js",
chunkFileNames: "[name].js",
Expand Down
1 change: 1 addition & 0 deletions lib/src/build-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export async function buildScript(config: BuildScriptConfig) {
plugin &&
(!("name" in plugin) || plugin.name !== "vite-plugin-web-extension")
),
define: config.vite.define,
build: {
emptyOutDir: false,
outDir,
Expand Down

0 comments on commit 420eebf

Please sign in to comment.