0
我正在嘗試將我的團隊代碼從AngularJS更新到Angular,並且我正在關注此guide。 在this section他們談論了update
包以及如何爲它添加映射。在引導他們使用SystemJS
而我的團隊使用Webpack
,我wondring什麼eqauivalent映射我需要添加到我的webpack.config.js
:AngularJS to Angular with Webpack
System.config({
paths: {
// paths serve as alias
'npm:': '/node_modules/'
},
map: {
'ng-loader': '../src/systemjs-angular-loader.js',
app: '/app',
/* . . . */
'@angular/upgrade/static': 'npm:@angular/upgrade/bundles/upgrade-
static.umd.js',
/* . . . */
},