-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,8 +88,8 @@ Import maps supports [**trailing slash**](https://github.com/WICG/import-maps#pa | |
```json | ||
{ | ||
"imports": { | ||
"react-dom": "https://esm.sh/[email protected]?pin=v121&dev", | ||
"react-dom/": "https://esm.sh/[email protected]&pin=v121&dev/", | ||
"react-dom": "https://esm.sh/[email protected]?pin=v122&dev", | ||
"react-dom/": "https://esm.sh/[email protected]&pin=v122&dev/", | ||
} | ||
} | ||
``` | ||
|
@@ -324,9 +324,9 @@ To ensure stable and consistent behavior, you may want to pin the build version | |
The `?pin` query allows you to specify a specific build version of a module, which is an **immutable** cached version stored on the esm.sh CDN. | ||
```javascript | ||
import React from "https://esm.sh/react-dom?pin=v121" | ||
import React from "https://esm.sh/react-dom?pin=v122" | ||
// or use version prefix | ||
import React from "https://esm.sh/v121/react-dom" | ||
import React from "https://esm.sh/v122/react-dom" | ||
``` | ||
By using the `?pin` query in the import statement, you can rest assured that the version of the module you're using will not change, even if updates are pushed to the esm.sh server. This helps ensure the stability and reliability of your application. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters