Jack Works
Jack Works
Ok, I believe I supported rspack at a very basic level. I need to do more tests and write some documents before I publish this. cc @cezaraugusto you may want...
hi please try 2.0.0!
See https://github.com/awesome-webextension/webpack-target-webextension/issues/49 (chunk in background service worker not loaded)
> > What you are looking for is a way to replicate `UNSAFE_componentWillReceiveProps` in functional components. > > You could also see it as looking for a way to replicate...
The experimental option is included in the latest npm version IIRC, you can use it if you want!
@cezaraugusto CSS is a tricky thing in content scripts. What I do is put all my DOM inside a ShadowRoot and use ShadowRoot.adoptedStyleSheets to apply my styles. By this way,...
> fwiw I'm calling webpack-target-webextension using `apply` ([code](https://github.com/extension-js/extension.js/blob/main/programs/develop/webpack/plugin-reload/steps/setup-reload-strategy/target-web-extension-plugin/index.ts?rgh-link-date=2025-04-06T17%3A46%3A19Z#L147-L150)) ```js new WebExtension({ background: this.getEntryName(patchedManifest), weakRuntimeCheck: true }).apply(compiler) ``` Can you try this? We support rspack directly, no need to "convert to...
> I managed to get it working by hardcoding the `chrome` namespace in these lines ([ref](https://github.com/awesome-webextension/webpack-target-webextension/blob/8606cbde3b63ac0d90069ca8755790fe6b3ecce0/lib/webpack5/RuntimeModules/BrowserRuntime.js#L71-L72)). maybe a race condition? hmm I tried to upgrade rspack version, and it is...
@cezaraugusto It's a rspack bug, see https://github.com/web-infra-dev/rspack/pull/9898. downgrade to 1.3.1 solves the problem
> I did notice a regression when setting content_scripts as `main` world `Uncaught TypeError: Cannot read properties of undefined (reading 'getURL')`. If you're running content scripts in a "main" world,...