Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

estransform package readme seems completely wrong #199

Open
markerikson opened this issue Oct 28, 2024 · 0 comments
Open

estransform package readme seems completely wrong #199

markerikson opened this issue Oct 28, 2024 · 0 comments

Comments

@markerikson
Copy link

I was browsing NPM for sourcemap related packages and came across this @chialab/estransform package.

According to the current published version on NPM and the README in the repo today, the usage is:

import { transform } from '@chialab/estransform';

const { code, map } = await transform(
    'require("tslib"); module.exports = function() {}',
    { sourceContents: true },
    (magicCode, contents) => {
        magicCode.overwrite(0, contents.length, 'Hello!');
    }
);

But, looking at both the source code and the current published version on NPM (0.18.1), I don't see a transform method listed anywhere.

It does look like there was a rewrite of the package logic to use oxc instead of sucrase, which was never published, but I don't see a transform method in that older version.

Do you plan to publish a newer version of the package with the changes? And could you clarify what the actual current API usage is?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant