saus icon indicating copy to clipboard operation
saus copied to clipboard

Replace magic-string in SSR bundles with a bare bones replacement

Open aleclarson opened this issue 3 years ago • 0 comments

The magic-string package is 19.5kb minified, and we don't actually need all those features. For example, it can produce sourcemaps, but SSR bundles work with pre-compiled JS modules, so there's no use case for sourcemap generation. In the SSR bundle, magic-string is only used in HTML manipulation, where sourcemaps aren't supported.

aleclarson avatar Jan 09 '22 00:01 aleclarson