From 1cb62346e498b93848bcb5f955fa6e4ac80737d4 Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 27 Aug 2019 10:07:38 +0200 Subject: [PATCH] docs: update i18n docs sample to cater for latest raw-loader version (#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 --- aio/content/examples/i18n/doc-files/main.2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/examples/i18n/doc-files/main.2.ts b/aio/content/examples/i18n/doc-files/main.2.ts index 0b68bc10fe..5807e7b40f 100644 --- a/aio/content/examples/i18n/doc-files/main.2.ts +++ b/aio/content/examples/i18n/doc-files/main.2.ts @@ -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: [