Build and run working browser extensions in minutes. This guide gives you the fastest path to start from real-world samples with Extension.js.
Use samples from the Chrome Extension Samples repository to validate your setup and learn the workflow quickly.
Replace <sample-name> with any sample from Chrome Extension Samples.
This example uses page-redder.
Extension.js supports Microsoft Edge out of the box.
Replace <sample-name> with the sample you want to run.
This example runs magic8ball in Edge.
You can also run Mozilla add-ons in Edge by enabling the polyfill.
This fetches a Mozilla add-on and adapts it for Edge.
This example fetches Apply CSS from MDN WebExtensions Examples and runs it in Edge.
tsconfig.json file to your project root.react and react-dom to your package.json.tsconfig.json configured for React enables TypeScript + React authoring.extension package to build, run, and bundle your extension from one toolchain.--browser to target a specific browser while developing.--polyfill when adapting Mozilla add-ons for Edge compatibility.