Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit c877fb1

Browse files
committed
v3.5.3
1 parent 5b2f47e commit c877fb1

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ $ npm i @litert/loader@dev --save
4444

4545
### CDN (recommend)
4646

47-
Recommended: https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/loader.min.js, you can also find it here https://cdn.jsdelivr.net/npm/@litert/loader/.
47+
Recommended: https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/loader.min.js, you can also find it here https://cdn.jsdelivr.net/npm/@litert/loader/.
4848

49-
Also available on [unpkg](https://unpkg.com/@litert/[email protected].2/dist/loader.min.js).
49+
Also available on [unpkg](https://unpkg.com/@litert/[email protected].3/dist/loader.min.js).
5050

5151
## Usage
5252

5353
Here's a general how to use it:
5454

5555
```html
56-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/loader.min.js"></script>
56+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/loader.min.js"></script>
5757
```
5858

5959
The code hint needs to be added in "tsconfig.json":
@@ -83,25 +83,25 @@ loader.ready(function() {
8383
Alternatively, use ?path= to load the ingress file directly, the js file extension can be omitted.
8484

8585
```html
86-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js?path=../lib/test"></script>
86+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/index.min.js?path=../lib/test"></script>
8787
```
8888

8989
Use the ?cdn= parameter to set the source address of the third library load, default is: https://cdn.jsdelivr.net.
9090

9191
```html
92-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js?cdn=https://cdn.xxx.xxx"></script>
92+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/index.min.js?cdn=https://cdn.xxx.xxx"></script>
9393
```
9494

9595
Use the ?map= parameter to set the path to the third-party library, a JSON string, that is valid only with the path parameter.
9696

9797
```html
98-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js?&path=xxx&map={'xxx':'https://xx/npm/index'}"></script>
98+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/index.min.js?&path=xxx&map={'xxx':'https://xx/npm/index'}"></script>
9999
```
100100

101101
Using the ?npm= parameter loader will automatically go to npm to find the relevant library for sniffing loading, JSON string, module name and version number, only valid with the path parameter.
102102

103103
```html
104-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js?&path=xxx&npm={'xxx':'1.0.0'}"></script>
104+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/index.min.js?&path=xxx&npm={'xxx':'1.0.0'}"></script>
105105
```
106106

107107
You can use the fetchFiles method to load network files into memory.

doc/README.sc.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ $ npm i @litert/loader@dev --save
4343

4444
### CDN(推荐)
4545

46-
推荐引用地址:https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js,也可以此处查找:https://cdn.jsdelivr.net/npm/@litert/loader/。
46+
推荐引用地址:https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/index.min.js,也可以此处查找:https://cdn.jsdelivr.net/npm/@litert/loader/。
4747

48-
同样可使用 [unpkg](https://unpkg.com/@litert/[email protected].2/dist/index.min.js)
48+
同样可使用 [unpkg](https://unpkg.com/@litert/[email protected].3/dist/index.min.js)
4949

5050
## Usage
5151

5252
通常的使用方式:
5353

5454
```html
55-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js"></script>
55+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/index.min.js"></script>
5656
```
5757

5858
代码提示需要在“tsconfig.json”中添加:
@@ -82,25 +82,25 @@ loader.ready(function() {
8282
或者使用 ?path= 直接加载入口 js 文件,js 后缀可省略。
8383

8484
```html
85-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js?path=../lib/test"></script>
85+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/index.min.js?path=../lib/test"></script>
8686
```
8787

8888
使用 ?cdn= 参数设置第三库加载的源地址,默认为:https://cdn.jsdelivr.net。
8989

9090
```html
91-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js?cdn=https://cdn.xxx.xxx"></script>
91+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/index.min.js?cdn=https://cdn.xxx.xxx"></script>
9292
```
9393

9494
使用 ?map= 参数设置第三方库的路径,JSON 字符串,仅在含有 path 参数下有效。
9595

9696
```html
97-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js?&path=xxx&map={'xxx':'https://xx/npm/index'}"></script>
97+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/index.min.js?&path=xxx&map={'xxx':'https://xx/npm/index'}"></script>
9898
```
9999

100100
使用 ?npm= 参数 loader 将自动去 npm 查找相关的库进行嗅探加载,JSON 字符串,模块名跟版本号,仅在含有 path 参数下有效。
101101

102102
```html
103-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js?&path=xxx&npm={'xxx':'1.0.0'}"></script>
103+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/index.min.js?&path=xxx&npm={'xxx':'1.0.0'}"></script>
104104
```
105105

106106
你可以使用 fetchFiles 方法加载网络文件到内存。

doc/README.tc.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ $ npm i @litert/loader@dev --save
4343

4444
### CDN(推薦)
4545

46-
推薦引用位址:https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js,也可以此處查找:https://cdn.jsdelivr.net/npm/@litert/loader/。
46+
推薦引用位址:https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/index.min.js,也可以此處查找:https://cdn.jsdelivr.net/npm/@litert/loader/。
4747

48-
同樣可使用 [unpkg](https://unpkg.com/@litert/[email protected].2/dist/index.min.js)
48+
同樣可使用 [unpkg](https://unpkg.com/@litert/[email protected].3/dist/index.min.js)
4949

5050
## Usage
5151

5252
通常的使用方式:
5353

5454
```html
55-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js"></script>
55+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].3s/dist/index.min.js"></script>
5656
```
5757

5858
代碼提示需要在「tsconfig.json」中添加:
@@ -82,25 +82,25 @@ loader.ready(function() {
8282
或者使用 ?path= 直接載入入口 js 檔,js 後綴可省略。
8383

8484
```html
85-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js?path=../lib/test"></script>
85+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/index.min.js?path=../lib/test"></script>
8686
```
8787

8888
使用 ?cdn= 參數設置三方庫載入的源地址,預設為:https://cdn.jsdelivr.net。
8989

9090
```html
91-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js?cdn=https://cdn.xxx.xxx"></script>
91+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/index.min.js?cdn=https://cdn.xxx.xxx"></script>
9292
```
9393

9494
使用 ?map= 參數設置第三方庫的路徑,JSON 字串,僅在含有 path 參數下有效。
9595

9696
```html
97-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js?&path=xxx&map={'xxx':'https://xx/npm/index'}"></script>
97+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/index.min.js?&path=xxx&map={'xxx':'https://xx/npm/index'}"></script>
9898
```
9999

100100
使用 ?npm= 參數 loader 將自動去 npm 查找相關的庫進行嗅探載入,JSON 字串,模組名跟版本號,僅在含有 path 參數下有效。
101101

102102
```html
103-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].2/dist/index.min.js?&path=xxx&npm={'xxx':'1.0.0'}"></script>
103+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].3/dist/index.min.js?&path=xxx&npm={'xxx':'1.0.0'}"></script>
104104
```
105105

106106
你可以使用 fetchFiles 方法載入網路檔到記憶體。

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@litert/loader",
3-
"version": "3.5.2",
3+
"version": "3.5.3",
44
"description": "Simple browser module loader.",
55
"keywords": [
66
"litert",

0 commit comments

Comments
 (0)