Skip to content

Commit

Permalink
fix: maintain ; and , during minification (#590)
Browse files Browse the repository at this point in the history
Co-authored-by: Jack Steam <[email protected]>
  • Loading branch information
marcoreni and jacksteamdev authored Nov 27, 2022
1 parent 5ac019d commit badc910
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-numbers-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@crxjs/vite-plugin": patch
---

fix: maintain ; and , during minification
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export const pluginDynamicContentScripts: CrxPluginFn = () => {

return `${JSON.stringify(
`/${script.loaderName ?? script.fileName}`,
)};`
)}${match.split(scriptKey)[1]}`
},
)
// TODO: remove unused import_meta value?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Array [
`;

exports[`build fs output > assets/background.ts.hash5.js 1`] = `
"const t=\\"/assets/content1.ts-loader.hash6.js\\";e=\\"/assets/content2.ts-loader.hash7.js\\";chrome.scripting.executeScript({files:[t,e],target:{tabId:1}});
"const t=\\"/assets/content1.ts-loader.hash6.js\\",e=\\"/assets/content2.ts-loader.hash7.js\\";chrome.scripting.executeScript({files:[t,e],target:{tabId:1}});
"
`;

Expand Down

0 comments on commit badc910

Please sign in to comment.