#tsdown, entry: "src/manifest.json" -> transform -> out: "dist/manifest.json"?

1 messages · Page 1 of 1 (latest)

naive void
#

Im using tsdown to generate various parts of a chrome extension (content script, devtools panel, devtools page).
Previously I had manifest.json inside /public and was using copy: [{ from: 'public', to: 'dist' }], however I would like to be able to do a transform on this file; and copied files dont seem to pass through the transform function. I tried creating an entry: with the json, however that results in javascript in the dist directory.
Is there some way I can have json as entry, transform it, and output json also?

onyx canyon
#

what kind of transform would you like to apply?

naive void
#

at this point basically just a string replace (versioning)