From 447d011b8fe739ec928c5c0ebcbc39f95c7e6a10 Mon Sep 17 00:00:00 2001 From: Aaron Klinker Date: Tue, 3 Sep 2024 14:30:10 -0500 Subject: [PATCH] docs: Retroactively mention breaking change in v0.18.5 See https://github.com/wxt-dev/wxt/discussions/950#discussioncomment-10512337 --- docs/guide/upgrade-guide/wxt.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/guide/upgrade-guide/wxt.md b/docs/guide/upgrade-guide/wxt.md index f0478a56..c90ad079 100644 --- a/docs/guide/upgrade-guide/wxt.md +++ b/docs/guide/upgrade-guide/wxt.md @@ -86,6 +86,27 @@ WXT no longer ships with Common JS support. If you're using CJS, here's your mig Vite also provides steps for migrating to ESM. Check them out for more details: https://vitejs.dev/guide/migration#deprecate-cjs-node-api +## v0.18.0 → v0.18.5 + +> Marking this retroactively as a breaking change. Documented to help people upgrading. + +### New `modules/` Directory + +WXT now recognizes the `modules/` directory as a folder containing [WXT modules](/guide/go-further/reusable-modules). + +If you already have `/modules` or `/Modules` directory, `wxt prepare` and other commands will fail. + +You have two options: + +1. [Recommended] Keep your files where they are and tell WXT to look in a different folder: + ```ts + // wxt.config.ts + export default defineConfig({ + modulesDir: 'wxt-modules', // defaults to "modules" + }); + ``` +2. Rename your `modules` directory to something else. + ## v0.17.0 → v0.18.0 ### Automatic MV3 `host_permissions` to MV2 `permissions`