https://github.com/kscript/require
在浏览器中使用 commonjs 模块
https://github.com/kscript/require
commonjs require
Last synced: 7 months ago
JSON representation
在浏览器中使用 commonjs 模块
- Host: GitHub
- URL: https://github.com/kscript/require
- Owner: kscript
- Created: 2024-12-23T04:31:26.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-23T04:54:29.000Z (about 1 year ago)
- Last Synced: 2025-03-29T11:34:42.319Z (10 months ago)
- Topics: commonjs, require
- Language: JavaScript
- Homepage: https://kscript.github.io/require/demo
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @kscript/require
在浏览器中使用 commonjs 模块
## 示例
``` html
// 注意: 这里的require方法, 是异步的
const hello = await require('./hello.js')
console.log(hello)
```