From 31ac66edbe8c19d2a7c81916dd309c62d90d2442 Mon Sep 17 00:00:00 2001 From: Alex Vechkanov Date: Tue, 4 Apr 2023 20:02:30 +0300 Subject: [PATCH] Update output-management.mdx In Preparation section we see creating two modules: 1) src/index.js 2) src/print.js Inside webpack config we made two enrty points: ``` entry: { index: './src/index.js', print: './src/print.js', }, ``` We, also, made changes inside html: ``` Output Management ``` We expose print.bundle.js and index.bundle.js module, bucause after building we will have two separated modules But, there is anoter odd code. We import print.js module inside index.js module. I not understand for what. We will have separated modules, connected on index.html, but index.js already include print module inside itself. It's weird, or i am stupit. Please explain me, why we should include print module indide index module? --- src/content/guides/output-management.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/guides/output-management.mdx b/src/content/guides/output-management.mdx index 226c20a72614..77bbfa6342de 100644 --- a/src/content/guides/output-management.mdx +++ b/src/content/guides/output-management.mdx @@ -46,6 +46,7 @@ export default function printMe() { And use that function in our `src/index.js` file: + **src/index.js** ```diff