boxednode
boxednode copied to clipboard
what about es6?
Hello.
What to do if code use es6?
Like this
import { readFileSync } from 'fs';
console.log(JSON.parse(readFileSync('package.json')));
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.