chore: 通過 ESM 引入外部脚本
* React, ReactDOM 和 CryptoES * 集中在 Imports.ts 中 * 向每一個 JSX 添加 React 的 import
This commit is contained in:
9
client/Imports.ts
Normal file
9
client/Imports.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import * as React from 'https://esm.sh/react@18.3.1'
|
||||
import * as ReactDOM from 'https://esm.sh/react-dom@18.3.1'
|
||||
import CryptoES from 'https://unpkg.com/crypto-es@3.0.4/dist/index.mjs'
|
||||
|
||||
export {
|
||||
React,
|
||||
ReactDOM,
|
||||
CryptoES,
|
||||
}
|
||||
Reference in New Issue
Block a user