Leo Wang(草鞋没号)
Leo Wang(草鞋没号)
> umi dev 页面多的时候启动慢啊,要一分钟 想过没想过如何解决这个问题 😂 我打算用 Native 插件试试
> 大大,想问一下:umi ssr是同构渲染吗?翻了很多资料都找不到这个解释 你是看了“某课网”视频的童鞋吧,所有 ssr 可以理解都是同构;无关框架
It's very useful! 👏👏👏👏
Maybe you can use it like this ```javascript import { transpileModule, ModuleKind } from 'typescript' import { cjsToEsm } from 'cjstoesm' const input = ` const {foo: bar} = require("./my-module")...
After i deleted the `/Users/${user}/.pnpm-store` directory, re-run `pnpm i` in my project and it worked. May be this command really needs. #2343
哈哈哈,我也来支持一波;顺便推广下 `electron-vite-vue` 已经更新 v2 版本 😄
@dpeng 外企大佬 😂
我尝试在开发期通过 ESModule transform to CommonJs 解决了这个问题 😁 https://github.com/caoxiemeihao/electron-vue-vite
> 我尝试了 git pull 和 npx create-vite-electron 重新下载模板, > 仍然会报错,一般模块都是没有问题的,只有这个模块(功能是调用串口),我只在 main.ts 加上一行 const Serialport = require('serialport') 后打包,打开 win-unpacked 下的 .exe 文件就会出现这样的报错。 > > 如果我改用 import Serialport from 'serialport' 报错会变成 >...
试试这个模板 💪 Full Featured. Enabled NodeJs in Renderer-process. SQLite3/serialport/electron-store. https://github.com/caoxiemeihao/electron-vite-boilerplate