我读了捆绑systemjs文档的部分内容,在HTTP/2中不再需要捆绑优化:
在HTTP/2上,这种方法可能更为可取,因为它允许在浏览器中单独缓存文件,这意味着不再需要对包进行优化.
我的问题:
如何连接ES6模块?
var foo = 2; // This would normally be scoped to the module.
export function Bar() {}
// ...concatenate...
import { Bar } from 'javascripts/bar' //This file no longer exists in the concatenated scenario.
export function Bam() {}
Run Code Online (Sandbox Code Playgroud)