esbuild-plugin-replace icon indicating copy to clipboard operation
esbuild-plugin-replace copied to clipboard

Add `preventAssignment` option

Open NikolaOroz opened this issue 9 months ago • 0 comments

  • Added option for preventAssignment
  • Updated README.md

Mimics the implementation from @rollup/plugin-replace.

I was trying to recreate the preventAssignment option by using custom delimiters but since that is not possible because custom delimiter values are being escaped it prompted me to suggest this change instead.

Although, I still believe that custom delimiters should not be escaped to allow for more granular customization.

NikolaOroz avatar May 04 '24 14:05 NikolaOroz