Releases: crxjs/chrome-extension-tools
Introducing extend-chrome.dev
We have a new docs site! Check it out at https://extend-chrome.dev/rollup-plugin
Supporting MV3
MV3 support is now available in the main
branch! 🎉
We haven't written the docs yet, but no special config is required. Even the simple reloader works, but only if a content script is open.
You can try it out on NPM:
npm i rollup-plugin-chrome-extension@latest -D
All that is required is a valid MV3 manifest.json
file. If you want to use our JSON schema in VSCode to get auto-completion and validation, add the following to .vscode/settings.json
:
{
"json.schemas": [
{
"fileMatch": ["manifest.json"],
"url": "https://raw.githubusercontent.com/extend-chrome/rollup-plugin-chrome-extension/main/manifest.schema.json"
}
],
}
Please report any issues you encounter! 🙏
Commits
Ironing out MV3 bugs
This release irons out some MV3 content script bugs.
- feat: simplify MV3 content script approach 2f149dc
- fix duplicate map calls e50361a
- fix duplicate match patterns 977c787
- fix: convert content script match patterns (#100) 620c076
- fix deprecation warning condition 9d71dda
Beta Testing
You can install this branch on npm:
npm i rollup-plugin-chrome-extension@beta -D
Supporting manifest files in TypeScript
This release adds support for manifest files as TS files in addition to JSON files.
Type checking and environment variables are here!
// rollup.config.js
export default {
input: 'manifest.ts',
output: { ... }
}
// manifest.ts
import { ManifestV3 } from 'rollup-plugin-chrome-extension'
const config: ManifestV3 = {
content_scripts: [
{
js: ['content.ts'],
matches: ['https://*/*', 'http://*/*'],
},
],
manifest_version: 3,
}
export default config
Beta Testing
You can install this branch on npm:
npm i rollup-plugin-chrome-extension@beta -D
Fixing the schema
Fixes a schema bug that didn't validate content script match patterns with ports (eg, http://localhost:5000
).
Building MV3
This release adds the ability to build MV3 extensions 🎉
Beta Testing
You can install this branch on npm:
npm i rollup-plugin-chrome-extension@beta -D
Please note, this release is BETA. Use at your own risk.
Supporting internationalization
This release will be available on npm:
npm i [email protected] -D
Parsing MV3
Validating MV3
This release adds a JSON schema that supports MV3.
- chore: remove aliases b9a3b3f
- chore: add alias to jest c55cbc8
- chore: fix types build step 25a9519
- chore: remove comment from rollup config e28e7f2
- chore: support node >= 12 0a876fc
- chore: include schema on npm ecb2538
- Fix integration bugs with new schema (#90) e83143c
- Add MV3 types and JSON schema (#89) fc83a2f