menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Parcel

📦🚀 Blazing fast, zero configuration web application bundler

Channels
Team

WebExtension manifest transformer for Parcel 2?

December 24, 2019 at 3:29pm

WebExtension manifest transformer for Parcel 2?

December 24, 2019 at 3:29pm (Edited 3 years ago)
When using asset.addURLDependency() it returns some kind of hash instead of a transformed filename. Everything except that works. Only the paths in the transformed JSON are wrong.
.parcelrc:
{
"extends": ["@parcel/config-default"],
"transforms": {
"*.json": ["parcel-transformer-webextension"] // "manifest.json" doesn't work
}
}
Plugin is installed via npm i ../path/to/repo

January 21, 2020 at 2:37pm
The hash will later be replaced automatically with the bundle's path.
Edited