-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Umd folder #1704
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
Open
eoghanmurray
wants to merge
14
commits into
rrweb-io:master
Choose a base branch
from
eoghanmurray:umd-folder
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Umd folder #1704
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b9f5784
Don't allow video autoplay to automatically unfreeze page. If it's a …
eoghanmurray 68efa5b
Apply formatting changes
eoghanmurray 396875d
Create a new `umd` folder alongside `dist` for output of UMD files wi…
eoghanmurray a3715c7
Update to point to alpha.19 as presumably that's when the umd folder …
eoghanmurray 6ca41fe
Apply formatting changes
eoghanmurray b7e3c4c
Don't try to create the same directory twice (was failing on packages…
eoghanmurray 11d7b39
Create thirty-shirts-grow.md
eoghanmurray 9542476
Merge branch 'master' into umd-folder
eoghanmurray eb092d2
Revert something that shouldn't have gotten into the UMD branch folder
eoghanmurray 64996bf
Apply formatting changes
eoghanmurray 46898eb
Update vite.config.default.ts
Juice10 469eb8c
Apply formatting changes
Juice10 65bd2fd
Merge branch 'master' into umd-folder
eoghanmurray 65dd85e
Merge branch 'master' into umd-folder
eoghanmurray File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
"all": patch | ||
"packer": patch | ||
"plugins": patch | ||
"record": patch | ||
"replay": patch | ||
"rrdom": patch | ||
"rrdom-nodejs": patch | ||
"rrweb": patch | ||
"rrweb-player": patch | ||
"rrweb-snapshot": patch | ||
"types": patch | ||
"utils": patch | ||
--- | ||
|
||
Provide a /umd/ output folder alongside the /dist/ one so that we can serve UMD (Universal Module Definition) files with a .js extension, without upsetting expectations set by package.json that all .js files in /dist/ are modules |
This file contains hidden or 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 |
---|---|---|
|
@@ -15,13 +15,13 @@ You are recommended to install rrweb via jsdelivr's CDN service: | |
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/style.css" | ||
/> | ||
<script src="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.umd.min.cjs"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/rrweb@latest/umd/rrweb.min.js"></script> | ||
``` | ||
|
||
Also, you can link to a specific version number that you can update manually: | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].14/dist/rrweb.umd.min.cjs"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].19/umd/rrweb.min.js"></script> | ||
``` | ||
|
||
#### Only include the recorder code | ||
|
@@ -30,7 +30,7 @@ rrweb's code includes both the record and the replay parts. Most of the time you | |
This also can be done by using the `@rrweb/record` package and the CDN service: | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@rrweb/record@latest/dist/record.umd.min.cjs"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@rrweb/record@latest/umd/record.min.js"></script> | ||
``` | ||
|
||
#### Other packages | ||
|
This file contains hidden or 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 |
---|---|---|
|
@@ -13,21 +13,21 @@ | |
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/style.css" | ||
/> | ||
<script src="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.umd.min.cjs"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/rrweb@latest/umd/rrweb.min.js"></script> | ||
``` | ||
|
||
也可以在 URL 中指定具体的版本号,例如: | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].14/dist/rrweb.umd.min.cjs"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected].19/umd/rrweb.min.js"></script> | ||
``` | ||
|
||
#### 仅引入录制部分 | ||
|
||
rrweb 代码分为录制和回放两部分,大多数时候用户在被录制的应用中只需要引入录制部分代码。同样可以通过使用 @rrweb/record 包和 CDN 服务来实现: | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@rrweb/record@latest/dist/record.umd.min.cjs"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@rrweb/record@latest/umd/record.min.js"></script> | ||
``` | ||
|
||
#### 其他包 | ||
|
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.