我正在尝试使用ES6模块在浏览器中导出和导入对象。
我试过了
import { options } from 'options';
但是我得到了错误uncatted syntaxerror:Unexpected token import
。
然后我尝试转换它,但现在我收到错误uncapted referenceerror:required is not defined
。
在浏览器中不能使用模块吗?
您可能需要查看http://jspm.io/它基于system.js。
希望有帮助..