Giter VIP home page Giter VIP logo

vite-plugin-utools-helper's People

Contributors

csj8520 avatar iamxiyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

lgf-136

vite-plugin-utools-helper's Issues

createPreloadPlugin 生成的文件会错误的把函数传参进行导出

复现步骤:

克隆作者自己的项目 https://github.com/csj8520/utools-plugin-tinypng/tree/master

安装依赖

pnpm install

构建项目

pnpm start

查看 dist/preload.js 会发现在最后一行额外多了data 的导出,这个 data 其实是 writeFile 方法的第二个参数。

如果修改 src/preload/index.ts ,在任意方法上添加多个传参,会发现所有包含多个的参数都会被错误的收集、导出。

假设在 src/preload/index.ts 添加

export function testA(a1: any, a2: any, a3: any) {
  return { a1, a2, a3 }
}

查看 dist/preload.js ,发现最后不止有 testA、还有 a2、a3,这是不符合预期的。

修复建议:

mlly 某个版本行为发生了变化,可以考虑对 declaration 只收集 name

什么时候支持upxs

谢谢作者提供这么好的插件,请问什么时候可以支持5.0版本的upxs呀

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.