@crxjs/vite-plugin 2.0.0-beta.4 → 2.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -303,7 +303,7 @@ const pluginBackground = () => {
303
303
  const port = config.server.port?.toString();
304
304
  if (typeof port === "undefined")
305
305
  throw new Error("server port is undefined in watch mode");
306
- loader = `import 'http:/localhost:${port}/@vite/env';
306
+ loader = `import 'http://localhost:${port}/@vite/env';
307
307
  `;
308
308
  loader += `import 'http://localhost:${port}${workerClientId}';
309
309
  `;
@@ -693,7 +693,7 @@ const pluginDeclaredContentScripts = () => {
693
693
  return [];
694
694
  };
695
695
 
696
- const _dynamicScriptRegEx = /\b(import.meta).CRX_DYNAMIC_SCRIPT_(.+?);$/gm;
696
+ const _dynamicScriptRegEx = /\b(import.meta).CRX_DYNAMIC_SCRIPT_(.+?)[,;]/gm;
697
697
  const dynamicScriptRegEx = () => {
698
698
  _dynamicScriptRegEx.lastIndex = 0;
699
699
  return _dynamicScriptRegEx;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crxjs/vite-plugin",
3
- "version": "2.0.0-beta.4",
3
+ "version": "2.0.0-beta.6",
4
4
  "description": "Build Chrome Extensions with this Vite plugin.",
5
5
  "keywords": [
6
6
  "rollup-plugin",