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

what about es6? #26

Open
vinnitu opened this issue Jun 7, 2022 · 1 comment
Open

what about es6? #26

vinnitu opened this issue Jun 7, 2022 · 1 comment

Comments

@vinnitu
Copy link

vinnitu commented Jun 7, 2022

Hello.

What to do if code use es6?

Like this

import { readFileSync } from 'fs';
console.log(JSON.parse(readFileSync('package.json')));
@addaleax
Copy link
Contributor

Right now, the entry point has to be a JS script, but it’s conceivable to add support for ES6 modules here. After the entry point, ES6 modules can be used regardless.

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

2 participants