Open benignant opened 1 year ago
@dummdidumm @benignant does it means processors/replace.ts should have a method which takes file content, options
and returns the new formatted content using magicstring.replace
method?
I think the change would go in transformers/replace.ts
.
@benignant But transformer/replace.ts
is doing the same thing as magicstring.replace
, then why do you want to change it?
The magic-string replace
method maintains the source map.
@benignant Sorry but I can understand your exact requirement.Do you want to use replace method to generate a source map of a given script file using replace method?
Is your feature request related to a problem? Please describe. The
replace
preprocessor does not support source maps. I'm using it to replace multiple lines.Describe the solution you'd like Can the
replace
transformer use themagic-string
replace
method?