Skip to content

Commit

Permalink
fix(raw-loader): as of raw-loader 2.0.0, we should add the .default
Browse files Browse the repository at this point in the history
… when requiring a template

webpack-contrib/raw-loader#69
  • Loading branch information
ValentinGot committed Aug 6, 2019
1 parent 8023cdf commit 95950ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/blueprints/component/files/__name__.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export class <%= classifiedName %>Controller {
}

export const <%= classifiedName %>Component: ng.IComponentOptions = {
template : require('./<%= fileName %>.component.html'),
template : require('./<%= fileName %>.component.html').default,
controller: <%= classifiedName %>Controller
};
2 changes: 1 addition & 1 deletion lib/blueprints/module/files/__name__.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export class <%= classifiedName %>Controller {
}

export const <%= classifiedName %>Component: ng.IComponentOptions = {
template : require('./<%= fileName %>.component.html'),
template : require('./<%= fileName %>.component.html').default,
controller: <%= classifiedName %>Controller
};
2 changes: 1 addition & 1 deletion templates/application/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ class AppController {

export const AppComponent = {
controller: AppController,
template: require('./app.component.html')
template: require('./app.component.html').default
};

0 comments on commit 95950ec

Please sign in to comment.