Skip to content

Commit

Permalink
Fix npm installation instructions (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning authored Dec 16, 2024
1 parent 3f4d0b3 commit 6f6dc9d
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 6f6dc9d

Please sign in to comment.