Skip to content

Commit

Permalink
docs: update i18n docs sample to cater for latest raw-loader version (#…
Browse files Browse the repository at this point in the history
…32334)

`raw-loader` version 2+ which is used in the CLI version 8 introduced a breaking change and now uses `export default` instead of `module.exports`.

See: https://github.com/webpack-contrib/raw-loader/blob/master/CHANGELOG.md#200-2019-03-18

Closes #32333

PR Close #32334
  • Loading branch information
alan-agius4 authored and atscott committed Aug 27, 2019
1 parent f57c17d commit 1cb6234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aio/content/examples/i18n/doc-files/main.2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (environment.production) {
// use the require method provided by webpack
declare const require;
// we use the webpack raw-loader to return the content as a string
const translations = require(`raw-loader!./locale/messages.fr.xlf`);
const translations = require('raw-loader!./locale/messages.fr.xlf').default;

platformBrowserDynamic().bootstrapModule(AppModule, {
providers: [
Expand Down

0 comments on commit 1cb6234

Please sign in to comment.