Skip to content

Latest commit

 

History

History
83 lines (54 loc) · 3.65 KB

CHANGELOG.md

File metadata and controls

83 lines (54 loc) · 3.65 KB

Changelog

1.1.2

  • Support main world content script to be bundled. Also added a guide and example for this.

1.1.1

1.1.0

  • Deprecate background.entry and background.manifest in the config.
  • Add background.pageEntry and background.serviceWorkerEntry in the config. Now you can build for both limited event page (used by Firefox and Safari) and background service worker (Chrome) in a single webpack build.

Migrations

If you have

  • background.manifest = 3,
    1. remove background.manifest
    2. change background.entry to background.serviceWorkerEntry
  • background.manifest = 2 (or undefined),
    1. remove background.manifest
    2. change background.entry to background.pageEntry

1.0.5

Fix frameId is missing when injecting content script (#36).

1.0.4

Fix __webpack_require__.e is not a function in MV3 (#33).

1.0.3

Add weakRuntimeCheck option to support using with mini-css-extract-plugin.

1.0.2

Fix false positive of browser when a dom id is browser (#28).

1.0.1

Fix chunk loading in MV3 background worker.

1.0.0

We made a big write to support Manifest V3.

Breaking changes and migration

  • Drop Webpack 4 support.
    1. Stay at v0.2.1 if you cannot upgrade to webpack 5. (Webpack 4 support from 0.3.0 to 0.4.4 was broken).
    2. Upgrade to Webpack 5.
    3. Replace target: WebExtensionTarget({...}) with target: ["web", "ES2015"].
    4. Node polyfills are not supported in webpack 5. Please follow the webpack 5 migration guide to shim Node libraries.
    5. Add new WebExtensionTarget() to your plugins.
    6. Reconfigure this plugin.
  • Drop Node 14- support.
  • webpack-target-webextension/lib/background has been removed.
    • Remove import 'webpack-target-webextension/lib/background' from your project.
    • Configure background as in the README documented.
    • If you don't want it anymore, set background.chunkLoaderFallback to false.
  • If you configured your devServer as pre-1.0.0 document suggested, you can try to remove them. 1.0.0 provides out-of-box auto configure to enable HMR.
    • Set hmrConfig to false to disable this feature.

0.4.4 - 2021-07-25

Add dynamic import for webpack5. (#20)

0.4.3 - 2021-06-12

Add support for injection in iframe. (#17)