boxednode icon indicating copy to clipboard operation
boxednode copied to clipboard

what about es6?

Open vinnitu opened this issue 3 years ago β€’ 1 comments

Hello.

What to do if code use es6?

Like this

import { readFileSync } from 'fs';
console.log(JSON.parse(readFileSync('package.json')));

vinnitu avatar Jun 07 '22 14:06 vinnitu

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.

addaleax avatar Jun 20 '22 11:06 addaleax