Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix npm installation instructions. Resolves #21 #22

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ As noted above, it's often easier to install import-map-injector via script rath
With those caviats in mind, import-map-injector is also available on npm:

```sh
npm install import-map-injector
npm install @single-spa/import-map-injector
```

#### When bundling
Expand All @@ -45,7 +45,7 @@ The following information only applies if you're trying to bundle import-map-inj
Then it should just be included in your browser bundle with the following import.

```js
import "import-map-injector";
import "@single-spa/import-map-injector";
```

It's better for performance to put the import statement at the top of your bundler's main entry file, since import map installation is crucial to page load times.
Expand Down
Loading