Execute multiple transformations on JavaScript sources with full sourcemaps support.
npm install @chialab/estransform
Estransform • Execute multiple transformations on JavaScript sources with full sourcemaps support.
---
``sh`
npm i @chialab/estransform -D
`sh`
yarn add @chialab/estransform -D
`js
import { parse } from '@chialab/estransform';
const { ast, helpers } = await transform('require("tslib"); module.exports = function() {}', {
sourceContents: true,
});
helpers.overwrite(0, contents.length, 'Hello!');
``
---
Estransform is released under the MIT license.