diff --git a/404.html b/404.html index 409945a08..a613d8286 100644 --- a/404.html +++ b/404.html @@ -4,7 +4,7 @@ - + @@ -29,11 +29,11 @@ - + - + - + diff --git a/about/index.html b/about/index.html index 3d8e12587..92cea777c 100644 --- a/about/index.html +++ b/about/index.html @@ -4,7 +4,7 @@ - + @@ -32,11 +32,11 @@ - + - + - + diff --git a/getting-started/create-host/index.html b/getting-started/create-host/index.html index 5ca40dc61..943b5e7d9 100644 --- a/getting-started/create-host/index.html +++ b/getting-started/create-host/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + @@ -771,6 +771,23 @@

If you are having issues with the wepack configuration that are not related to module federation, refer to the @workleap/webpack-configs documentation.

+
+
+ +

# @@ -808,6 +825,23 @@

If you are having issues with the wepack configuration that are not related to module federation, refer to the @workleap/webpack-configs documentation.

+
+
+ +

# diff --git a/getting-started/create-local-module/index.html b/getting-started/create-local-module/index.html index 30d928de9..34a0ab55d 100644 --- a/getting-started/create-local-module/index.html +++ b/getting-started/create-local-module/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + @@ -340,21 +340,21 @@

-
pnpm add -D @workleap/tsup-configs tsup typescript @types/react @types/react-dom
+
pnpm add -D typescript @types/react @types/react-dom
 pnpm add @squide/firefly react react-dom react-router-dom @tanstack/react-query
-
yarn add -D @workleap/tsup-configs tsup typescript @types/react @types/react-dom
+
yarn add -D typescript @types/react @types/react-dom
 yarn add @squide/firefly react @squide/firefly react-dom react-router-dom @tanstack/react-query
-
npm add -D @workleap/tsup-configs tsup typescript @types/react @types/react-dom
+
npm add -D typescript @types/react @types/react-dom
 npm install @squide/firefly react react-dom react-router-dom @tanstack/react-query
@@ -387,8 +387,6 @@

├── src ├──── register.tsx ├──── Page.tsx -├── tsup.dev.ts -├── tsup.build.ts ├── package.json

Then, ensure that you are developing your module using ESM syntax by specifying type: module in your package.json file:

@@ -404,15 +402,12 @@

{
     "name": "@getting-started/local-module",
     "version": "0.0.1",
-    "exports": {
-        ".": {
-            "types": "./dist/register.d.ts",
-            "import": "./dist/register.js",
-            "default": "./dist/register.js"
-        }
-    }
+    "exports": "./src/register.tsx"
 }
+
+

For more information about the exports field, refer to this resource on Just-In-Time Packages.

+

# @@ -512,82 +507,13 @@

</RuntimeContext.Provider> ); - -

- # - Configure tsup -

-
-
-
- -
- -

- # - Development configuration -

-
-

To configure tsup for a development environment, open the tsup.dev.ts file and copy/paste the following code:

-
-
local-module/tsup.dev.ts
-
import { defineDevConfig } from "@workleap/tsup-configs";
-
-export default defineDevConfig();
-
- -

- # - Build configuration -

-
-

To configure tsup for a build environment, open the tsup.build.ts file and copy/paste the following code:

-
-
local-module/tsup.build.ts
-
import { defineBuildConfig } from "@workleap/tsup-configs";
-
-export default defineBuildConfig();
-
- -

- # - Add CLI scripts -

-
-

To initiate the development server, add the following script to the application package.json file:

-
-
local-module/package.json
-
{
-    "dev": "tsup --config ./tsup.dev.ts"
-}
-
-

To build the module, add the following script to the application package.json file:

-
-
local-module/package.json
-
{
-    "build": "tsup --config ./tsup.build.ts"
-}
-

# Try it 🚀

-

Start the host, remote-module and local-module applications in development mode using the dev script. You should notice an additional link labelled Local/Page in the navigation menu. Click on the link to navigate to the page of your new local module!

+

Start the host and remote-module applications in development mode using the dev script. You should notice an additional link labelled Local/Page in the navigation menu. Click on the link to navigate to the page of your new local module!

# diff --git a/getting-started/create-remote-module/index.html b/getting-started/create-remote-module/index.html index 0bdd8b554..5120bc8ca 100644 --- a/getting-started/create-remote-module/index.html +++ b/getting-started/create-remote-module/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/getting-started/deploy/index.html b/getting-started/deploy/index.html index 3850bf372..09ca32590 100644 --- a/getting-started/deploy/index.html +++ b/getting-started/deploy/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/getting-started/index.html b/getting-started/index.html index c4473e7d1..858a05dc4 100644 --- a/getting-started/index.html +++ b/getting-started/index.html @@ -4,7 +4,7 @@ - + @@ -32,11 +32,11 @@ - + - + - + diff --git a/getting-started/learn-the-api/index.html b/getting-started/learn-the-api/index.html index e373bf19d..20355c4af 100644 --- a/getting-started/learn-the-api/index.html +++ b/getting-started/learn-the-api/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/guides/add-a-public-route/index.html b/guides/add-a-public-route/index.html index 8530569cc..abcdc7bf4 100644 --- a/guides/add-a-public-route/index.html +++ b/guides/add-a-public-route/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/guides/add-a-shared-dependency/index.html b/guides/add-a-shared-dependency/index.html index 91e8e2348..83bec5727 100644 --- a/guides/add-a-shared-dependency/index.html +++ b/guides/add-a-shared-dependency/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/guides/add-authentication/index.html b/guides/add-authentication/index.html index 025a145a1..5693bf8d2 100644 --- a/guides/add-authentication/index.html +++ b/guides/add-authentication/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/guides/develop-a-module-in-isolation/index.html b/guides/develop-a-module-in-isolation/index.html index c93d478db..fa62e7fa4 100644 --- a/guides/develop-a-module-in-isolation/index.html +++ b/guides/develop-a-module-in-isolation/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + @@ -319,8 +319,6 @@

├─────────── register.tsx ├─────────── index.ts ├───────── package.json -├───────── tsup.dev.ts -├───────── tsup.build.ts ├── modules ├───────── local-module ├───────── remote-module @@ -355,17 +353,10 @@

"name": "@sample/shell", "version": "0.0.1", "type": "module", - "exports": { - ".": { - "import": "./dist/index.js", - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - } + "exports": "./src/index.ts" } -

Then, install the package dependencies and configure the new package with tsup.

-

Then, create an AppRouter component in the shell package to provide a reusable router configuration that can be shared between the host application and the isolated modules. This new AppRouter component should wrap the @squide/firefly AppRouter component:

+

Then, install the package dependencies and create an AppRouter component in the shell package to provide a reusable router configuration that can be shared between the host application and the isolated modules. This new AppRouter component should wrap the @squide/firefly AppRouter component:

shell/src/AppRouter.tsx
import { AppRouter as FireflyAppRouter } from "@squide/firefly";
diff --git a/guides/fetch-global-data/index.html b/guides/fetch-global-data/index.html
index aa4c1e9e5..3e1eeba64 100644
--- a/guides/fetch-global-data/index.html
+++ b/guides/fetch-global-data/index.html
@@ -4,7 +4,7 @@
     
     
     
-    
+    
 
     
     
@@ -32,12 +32,12 @@
     
 
     
-    
+    
 
-    
+    
     
-    
-    
+    
+    
 
     
 
diff --git a/guides/fetch-page-data/index.html b/guides/fetch-page-data/index.html
index bba41fe1f..48f43d7d4 100644
--- a/guides/fetch-page-data/index.html
+++ b/guides/fetch-page-data/index.html
@@ -4,7 +4,7 @@
     
     
     
-    
+    
 
     
     
@@ -32,12 +32,12 @@
     
 
     
-    
+    
 
-    
+    
     
-    
-    
+    
+    
 
     
 
diff --git a/guides/implement-a-custom-logger/index.html b/guides/implement-a-custom-logger/index.html
index 28a8e3eef..8a60da501 100644
--- a/guides/implement-a-custom-logger/index.html
+++ b/guides/implement-a-custom-logger/index.html
@@ -4,7 +4,7 @@
     
     
     
-    
+    
 
     
     
@@ -32,12 +32,12 @@
     
 
     
-    
+    
 
-    
+    
     
-    
-    
+    
+    
 
     
 
diff --git a/guides/index.html b/guides/index.html
index 4e892e49b..9faef4967 100644
--- a/guides/index.html
+++ b/guides/index.html
@@ -4,7 +4,7 @@
     
     
     
-    
+    
 
     
     
@@ -32,11 +32,11 @@
     
 
     
-    
+    
 
-    
+    
     
-    
+    
 
     
 
diff --git a/guides/isolate-module-failures/index.html b/guides/isolate-module-failures/index.html
index da0fbf55c..af06729ac 100644
--- a/guides/isolate-module-failures/index.html
+++ b/guides/isolate-module-failures/index.html
@@ -4,7 +4,7 @@
     
     
     
-    
+    
 
     
     
@@ -32,12 +32,12 @@
     
 
     
-    
+    
 
-    
+    
     
-    
-    
+    
+    
 
     
 
diff --git a/guides/manage-shared-state/index.html b/guides/manage-shared-state/index.html
index 25917bb8a..f3a21f996 100644
--- a/guides/manage-shared-state/index.html
+++ b/guides/manage-shared-state/index.html
@@ -4,7 +4,7 @@
     
     
     
-    
+    
 
     
     
@@ -32,11 +32,11 @@
     
 
     
-    
+    
 
-    
+    
     
-    
+    
 
     
 
diff --git a/guides/override-a-react-context/index.html b/guides/override-a-react-context/index.html
index 182c501a1..6645710df 100644
--- a/guides/override-a-react-context/index.html
+++ b/guides/override-a-react-context/index.html
@@ -4,7 +4,7 @@
     
     
     
-    
+    
 
     
     
@@ -32,12 +32,12 @@
     
 
     
-    
+    
 
-    
+    
     
-    
-    
+    
+    
 
     
 
diff --git a/guides/override-the-host-layout/index.html b/guides/override-the-host-layout/index.html
index 10a6d4aa9..eb616c727 100644
--- a/guides/override-the-host-layout/index.html
+++ b/guides/override-the-host-layout/index.html
@@ -4,7 +4,7 @@
     
     
     
-    
+    
 
     
     
@@ -32,12 +32,12 @@
     
 
     
-    
+    
 
-    
+    
     
-    
-    
+    
+    
 
     
 
diff --git a/guides/setup-honeycomb/index.html b/guides/setup-honeycomb/index.html
index 0c85c51f6..5615305db 100644
--- a/guides/setup-honeycomb/index.html
+++ b/guides/setup-honeycomb/index.html
@@ -4,7 +4,7 @@
     
     
     
-    
+    
 
     
     
@@ -34,12 +34,12 @@
     
 
     
-    
+    
 
-    
+    
     
-    
-    
+    
+    
 
     
 
@@ -336,19 +336,19 @@ 

-
pnpm add @squide/firefly-honeycomb @honeycombio/opentelemetry-web @opentelemetry/api @opentelemetry/auto-instrumentations-web
+
pnpm add @squide/firefly-honeycomb @honeycombio/opentelemetry-web @opentelemetry/api @opentelemetry/auto-instrumentations-web @opentelemetry/instrumentation-fetch @opentelemetry/sdk-trace-web
-
yarn add @squide/firefly-honeycomb @honeycombio/opentelemetry-web @opentelemetry/api @opentelemetry/auto-instrumentations-web
+
yarn add @squide/firefly-honeycomb @honeycombio/opentelemetry-web @opentelemetry/api @opentelemetry/auto-instrumentations-web @opentelemetry/instrumentation-fetch @opentelemetry/sdk-trace-web
-
npm install @squide/firefly-honeycomb @honeycombio/opentelemetry-web @opentelemetry/api @opentelemetry/auto-instrumentations-web
+
npm install @squide/firefly-honeycomb @honeycombio/opentelemetry-web @opentelemetry/api @opentelemetry/auto-instrumentations-web @opentelemetry/instrumentation-fetch @opentelemetry/sdk-trace-web
diff --git a/guides/setup-i18next/index.html b/guides/setup-i18next/index.html index dd9e9ba65..bec2b83e0 100644 --- a/guides/setup-i18next/index.html +++ b/guides/setup-i18next/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/guides/setup-msw/index.html b/guides/setup-msw/index.html index 9955e8c45..daca131bd 100644 --- a/guides/setup-msw/index.html +++ b/guides/setup-msw/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/guides/use-environment-variables/index.html b/guides/use-environment-variables/index.html index 0b102bdc4..8af3bb579 100644 --- a/guides/use-environment-variables/index.html +++ b/guides/use-environment-variables/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + @@ -483,6 +483,15 @@

"exclude": ["dist", "node_modules"] }

+

If the project contains Typescript files at its root that need to be linted (such as tooling configuration files), consider including all project files instead of specific directories:

+
+
host/tsconfig.json
+
{
+    "extends": "@workleap/typescript-configs/web-application.json",
+    "include": ["."],
+    "exclude": ["dist", "node_modules"]
+}
+

# diff --git a/guides/use-feature-flags/index.html b/guides/use-feature-flags/index.html index fc41e0729..68360da1e 100644 --- a/guides/use-feature-flags/index.html +++ b/guides/use-feature-flags/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/guides/use-modular-tabs/index.html b/guides/use-modular-tabs/index.html index 9da0cbc85..59b985d90 100644 --- a/guides/use-modular-tabs/index.html +++ b/guides/use-modular-tabs/index.html @@ -4,7 +4,7 @@ - + @@ -34,12 +34,12 @@ - + - + - - + + diff --git a/index.html b/index.html index f15f2d9ee..8420e3430 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - + @@ -30,11 +30,11 @@ - + - + - + diff --git a/reference/env-vars/environmentvariablesplugin/index.html b/reference/env-vars/environmentvariablesplugin/index.html index 0be976d27..65843dba9 100644 --- a/reference/env-vars/environmentvariablesplugin/index.html +++ b/reference/env-vars/environmentvariablesplugin/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/reference/env-vars/getenvironmentvariablesplugin/index.html b/reference/env-vars/getenvironmentvariablesplugin/index.html index 451886e3b..6eb81e20e 100644 --- a/reference/env-vars/getenvironmentvariablesplugin/index.html +++ b/reference/env-vars/getenvironmentvariablesplugin/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/reference/env-vars/useenvironmentvariable/index.html b/reference/env-vars/useenvironmentvariable/index.html index 64e15f171..723ead0b1 100644 --- a/reference/env-vars/useenvironmentvariable/index.html +++ b/reference/env-vars/useenvironmentvariable/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/reference/env-vars/useenvironmentvariables/index.html b/reference/env-vars/useenvironmentvariables/index.html index e70bee756..a2623d9a7 100644 --- a/reference/env-vars/useenvironmentvariables/index.html +++ b/reference/env-vars/useenvironmentvariables/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/reference/fakes/localstoragesessionmanager/index.html b/reference/fakes/localstoragesessionmanager/index.html index 3f6f2c974..095dee034 100644 --- a/reference/fakes/localstoragesessionmanager/index.html +++ b/reference/fakes/localstoragesessionmanager/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/reference/fakes/readonlysessionlocalstorage/index.html b/reference/fakes/readonlysessionlocalstorage/index.html index 0db377db8..d0f9e7cba 100644 --- a/reference/fakes/readonlysessionlocalstorage/index.html +++ b/reference/fakes/readonlysessionlocalstorage/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/reference/honeycomb/registerhoneycombinstrumentation/index.html b/reference/honeycomb/registerhoneycombinstrumentation/index.html index c6e6998ff..c1fa5d004 100644 --- a/reference/honeycomb/registerhoneycombinstrumentation/index.html +++ b/reference/honeycomb/registerhoneycombinstrumentation/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/reference/honeycomb/setglobalspanattributes/index.html b/reference/honeycomb/setglobalspanattributes/index.html index 7379e8c23..031b1811d 100644 --- a/reference/honeycomb/setglobalspanattributes/index.html +++ b/reference/honeycomb/setglobalspanattributes/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/reference/i18next/geti18nextplugin/index.html b/reference/i18next/geti18nextplugin/index.html index 9689c75ec..79f4c0a64 100644 --- a/reference/i18next/geti18nextplugin/index.html +++ b/reference/i18next/geti18nextplugin/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/reference/i18next/i18nextnavigationitemlabel/index.html b/reference/i18next/i18nextnavigationitemlabel/index.html index cf4c52d92..261afbe62 100644 --- a/reference/i18next/i18nextnavigationitemlabel/index.html +++ b/reference/i18next/i18nextnavigationitemlabel/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/reference/i18next/i18nextplugin/index.html b/reference/i18next/i18nextplugin/index.html index c9134ee5c..62f5f5df7 100644 --- a/reference/i18next/i18nextplugin/index.html +++ b/reference/i18next/i18nextplugin/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/reference/i18next/usechangelanguage/index.html b/reference/i18next/usechangelanguage/index.html index b3f39a32d..b7231bfa6 100644 --- a/reference/i18next/usechangelanguage/index.html +++ b/reference/i18next/usechangelanguage/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/reference/i18next/usecurrentlanguage/index.html b/reference/i18next/usecurrentlanguage/index.html index 4f32fdf8c..eb46458da 100644 --- a/reference/i18next/usecurrentlanguage/index.html +++ b/reference/i18next/usecurrentlanguage/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/reference/i18next/usei18nextinstance/index.html b/reference/i18next/usei18nextinstance/index.html index 6b2760d40..3d588137e 100644 --- a/reference/i18next/usei18nextinstance/index.html +++ b/reference/i18next/usei18nextinstance/index.html @@ -4,7 +4,7 @@ - + @@ -32,12 +32,12 @@ - + - + - - + + diff --git a/reference/index.html b/reference/index.html index b5abf0faf..759ccd424 100644 --- a/reference/index.html +++ b/reference/index.html @@ -4,7 +4,7 @@ - + @@ -32,11 +32,11 @@ - + - + - + @@ -393,6 +393,26 @@

  • defineBuildHostConfig
  • defineBuildRemoteModuleConfig
  • + +

    + # + Rsbuild +

    +
    +

    # @@ -477,11 +497,11 @@