modules-webpack-commonjs:用于模块,Webpack,CommonJS的模板

:construction_worker:模块牧马人模板注意:您必须使用Modules RC才能使用此模板。查看以获取更多信息使用以下命令启动Cloudflare Workers项目的模板:模块(具体为CommonJS模块) Webpack牧马人辅助代码在src/index.js Webpack配置为将捆绑的CommonJS模块输出到dist/index.js该项目使用位于src/shim.mjs的shim ES模块,该模块可导入commonjs软件包并重新导出。这是必需的,因为commonjs不支持命名的导出,并且导出持久对象类的唯一方法是使用命名的导出。还可以使用package.json的module密钥将此垫片配置为主要模块。
zip
modules-webpack-commonjs-master.zip 预估大小:13个文件
folder
modules-webpack-commonjs-master 文件夹
file
LICENSE_MIT 1KB
file
package.json 525B
file
wrangler.toml 324B
file
.prettierrc 106B
file
package-lock.json 116KB
folder
src 文件夹
file
shim.mjs 95B
file
index.js 286B
file
slug.txt 20B
file
LICENSE_APACHE 9KB
file
.gitignore 92B
file
webpack.config.js 428B
file
CODE_OF_CONDUCT.md 3KB
file
README.md 791B
zip 文件大小:42.2KB