3-3的node generator.js出错,不支持import?
C:\Users\Administrator\Desktop\sudo\src\js\core>node generator.js
C:\Users\Administrator\Desktop\sudo\src\js\core\toolkit.js:1
(function (exports, require, module, __filename, __dirname) { import { Math } fr
om "core-js";
^^^^^^
SyntaxError: Unexpected token import
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:599:28)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Users\Administrator\Desktop\sudo\src\js\core\gener
ator.js:1:79)