张德帅

Results 5 comments of 张德帅

> > how to fix it when using vite (or rollup)? > > Hi, u can set it on vite.config.js. > > https://vitejs.dev/config/#configuring-vite How to configure on vite? Can you...

> vite上怎么配置config.externals({ "./cptable": "var cptable" }); 请问解决了嘛? vite上怎么配置

> npm install xlsx-style-hzx 1、cpexcel.js 的807行 var cpt = require('./cpt' + 'able') 改为 var cpt = require('./cpexcel'); 2、xlsx.js中var current_codepage = 1200, current_cptable;加上一个cptable;即var current_codepage = 1200, current_cptable, cptable; 修改源码的方式不是最好的解决方案。项目基于giltLab的CI/CD。每次修改源码不现实

> 是的,我后面才知道 > […](#) > ---原始邮件--- 发件人: ***@***.***> 发送时间: 2024年4月11日(周四) 上午10:23 收件人: ***@***.***>; 抄送: ***@***.******@***.***>; 主题: Re: [protobi/js-xlsx] vite上怎么配置config.externals({ "./cptable": "var cptable" }); (Issue #168) npm install xlsx-style-hzx 1、cpexcel.js 的807行...