magic-string-rs icon indicating copy to clipboard operation
magic-string-rs copied to clipboard

⚡️ Fast MagicString port driven by Rust and N-API

Results 14 magic-string-rs issues
Sort by recently updated
recently updated
newest added

riscv64 gnu linux support was added in napi-rs 2.17.0. This PR adds riscv64 linux gnu support and updates the CI yaml. There are test failures about GenerateMap that doesn't seem...

I was experimenting with using this package in vite and some utils were missing, so I implemented them! I need to say that I'm not experienced in rust.

Since Rust does not support default function parameters, it cannot be 100% compatible with magic-string.I'm not sure whether it can solved like `overwrite option parameter`. Some tests are commented out...

this is on nixos linux, where there is no /usr/bin/ldd the only FHS binaries in nixos are `/usr/bin/env` and `/bin/sh` both files are symlinks ``` stat /usr/bin/env /bin/sh | grep...

I tried to convert `rollup` to use `magic-string-rs`, but got the error: >Module '"@napi-rs/magic-string"' has no exported member 'Bundle' Here's the type as provided by `magic-string`: ``` export class Bundle...

I recently added this to `magic-string` as a safer alternative to `overwrite`. It's now heavily used in Vite and a couple other libraries https://github.com/Rich-Harris/magic-string#supdate-start-end-content-options-

I'm not sure if it's needed in this library, but `.hasChanged` in `magic-string` allows for an early return (skipping returning code and sourcemap) if nothing has changed, which is a...

These are two lovely utilities from `magic-string`. - https://github.com/Rich-Harris/magic-string/pull/203 - https://github.com/Rich-Harris/magic-string/pull/222