有没有人有在 aurealia 教程中从 ecma6 转换为 ecma5 的经验?
我正在做这里的生产教程http://aurelia.io/docs.html#/aurelia/framework/1.0.0-beta.1.1.4/doc/article/a-production-setup
当运行 gulp 任务“build-e2e”时,它会获取 test/e2e/src 目录中的文件并在 test/e2e/dist 目录中输出一个版本。很好,但文件是一样的(它会接受更改,但似乎从 ecma6 转换为 ecma6。
编辑 运行“gulp e2e”时,我收到以下日志消息:[launcher] Running 1 instances of WebDriver FFFF
失败:
1) 异常加载:/......../aurelia-production-tutorial/test/e2e/dist/demo.spec-compiled.js 错误消息:SyntaxError: Unexpected token export Stacktrace: SyntaxError: Unexpected token export at在 Object 的 require (internal/module.js:16:19) 处的 exports.runInThisContext (vm.js:53:16)。(/........./aurelia-production-tutorial/test/e2e/dist/demo.spec-compiled.js:3:20)