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

ignore scoped require #1

Open
zoswing opened this issue Feb 16, 2024 · 0 comments
Open

ignore scoped require #1

zoswing opened this issue Feb 16, 2024 · 0 comments

Comments

@zoswing
Copy link

zoswing commented Feb 16, 2024

there is a problem, scoped require doesn't ignores. e.g.

import fs from 'fs';
import {resolve} from 'path';
import {debounce} from 'lodash';
const a = require('../abc');
require('/def');
require('./../def');
export * from 'exp1';
export {ee} from 'exp1';

// this require is a param, expect not to be transformed
export const main = function(require){
    let test = require("hello")
    return test
}

how to fix?

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