diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..6b8710a --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +.git diff --git a/README.md b/README.md index e5a2884..fe2e03b 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,13 @@ This is a stable and viable workaround to leverage Module Federation [until this **Once I PR webpack, this workaround will no longer be required.** +# Check out our book + +| Practical Module Federation Book | We will be actively updating this book over the next year as we learn more about best practices and what issues people are running into with Module Federation, as well as with every release of Webpack as it moves towards a release candidate and release. So with your one purchase you are buying a whole year of updates. | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | + + + ## How to use it 1. Use `withModuleFederation` in your `next.config.js` @@ -18,7 +25,7 @@ This is a stable and viable workaround to leverage Module Federation [until this // next.config.js const { withModuleFederation, -} = require("@module-federation/nextjs-with-module-federation"); +} = require("@module-federation/nexjs-mf"); const path = require("path"); module.exports = { @@ -58,7 +65,7 @@ module.exports = { ```jsx import Document, { Html, Head, Main, NextScript } from "next/document"; -import { patchSharing } from "@module-federation/nextjs-with-module-federation"; +import { patchSharing } from "@module-federation/nexjs-mf"; class MyDocument extends Document { static async getInitialProps(ctx) { diff --git a/docs/MFCover.png b/docs/MFCover.png new file mode 100644 index 0000000..4a9dfca Binary files /dev/null and b/docs/MFCover.png differ diff --git a/package.json b/package.json index 3c16a04..6a2a741 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "public": true, "name": "@module-federation/nextjs-mf", - "version": "0.0.1-alpha.0", + "version": "0.0.1-alpha.2", "description": "Module Federation helper for NextJS", "main": "index.js", "repository": "https://github.com/module-federation/nexjs-mf",