update at 2026-02-14 10:19:12
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
注意事项:
|
||||
- `xlsx` 解析依赖 npm 包,若在微信开发者工具中提示模块缺失,请先执行“工具 -> 构建 npm”。
|
||||
- 为提高稳定性,仓库已内置 `miniapp/vendors/xlsx.full.min.js`,作为解析回退路径;即使 npm 构建异常,`xlsx` 上传通常也可解析。
|
||||
- 本仓库采用手动 npm 构建映射:
|
||||
- 依赖入口为 `miniapp/package.json`,依赖安装目录为 `miniapp/node_modules`。
|
||||
- 构建输出目录为 `miniapp/miniprogram_npm`。
|
||||
|
||||
@@ -45,6 +45,10 @@ function getXlsxModule() {
|
||||
}
|
||||
|
||||
const loadAttempts = [
|
||||
{
|
||||
label: "require('../vendors/xlsx.full.min')",
|
||||
loader: () => require('../vendors/xlsx.full.min')
|
||||
},
|
||||
{
|
||||
label: "require('xlsx')",
|
||||
loader: () => require('xlsx')
|
||||
|
||||
22
miniapp/vendors/xlsx.full.min.js
vendored
Normal file
22
miniapp/vendors/xlsx.full.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user