wxt 0.20.15 → 0.20.17

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.
@@ -4,4 +4,4 @@
4
4
  * `publish-browser-extension` as a direct dependency (like for PNPM, which doesn't link
5
5
  * sub-dependency binaries to "node_modules/.bin")
6
6
  */
7
- require('publish-browser-extension/cli');
7
+ import 'publish-browser-extension/cli';
@@ -78,8 +78,8 @@ async function createViteBuilder(wxtConfig, hooks, getWxtDevServer) {
78
78
  },
79
79
  rollupOptions: { output: {
80
80
  entryFileNames: getEntrypointBundlePath(entrypoint, wxtConfig.outDir, ".js"),
81
- assetFileNames: ({ names }) => {
82
- if (entrypoint.type === "content-script" && names[0].endsWith("css")) return `content-scripts/${entrypoint.name}.[ext]`;
81
+ assetFileNames: ({ name }) => {
82
+ if (entrypoint.type === "content-script" && name?.endsWith("css")) return `content-scripts/${entrypoint.name}.[ext]`;
83
83
  else return `assets/${entrypoint.name}.[ext]`;
84
84
  }
85
85
  } }
package/dist/version.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region src/version.ts
2
- const version = "0.20.15";
2
+ const version = "0.20.17";
3
3
 
4
4
  //#endregion
5
5
  export { version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wxt",
3
3
  "type": "module",
4
- "version": "0.20.15",
4
+ "version": "0.20.17",
5
5
  "description": "⚡ Next-gen Web Extension Framework",
6
6
  "license": "MIT",
7
7
  "dependencies": {
@@ -101,7 +101,7 @@
101
101
  ],
102
102
  "bin": {
103
103
  "wxt": "./bin/wxt.mjs",
104
- "wxt-publish-extension": "./bin/wxt-publish-extension.cjs"
104
+ "wxt-publish-extension": "./bin/wxt-publish-extension.mjs"
105
105
  },
106
106
  "module": "./dist/index.mjs",
107
107
  "types": "./dist/index.d.mts",