I'm using Parcel for a web extension project. I've defined 2 targets in package.json file:
"targets": {
"firefox": {
"engines": {
"browsers": [
"last 1 Firefox version"
]
}
},
"chrome": {
"engines": {
"browsers": [
"last 1 Chrome version"
]
}
}
}
I want to write a transformer (or any plugin which does the trick) to combine a manifest.json and manifest.{targetName}.json before collecting manifest dependencies.
So far I have learned that asset.env gives some info about the current environment. But I'm looking for a way to get the target name. Is there any way for it?