bamf
bamf
`eslint.config.js` for Vue 3.x project is much more complicated, you need to install `devDependencies` with package manager you like first: ```shell pnpm add -D @eslint/eslintrc @eslint/js @vue/eslint-config-prettier @vue/eslint-config-typescript eslint eslint-plugin-oxlint...
https://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only CJS 是因为当年 ECMA 不支持模块,社区搞出来的妥协产物,ESM 在 ES2015 中就规范化了,现在都 2024 年了,基本找不见几个只支持 CJS 的库了,新的库甚至清一色 ESM,直接就不支持 CJS,uni-app 是 Vue 生态的工具,Vue/Vite 全系都是 ESM 了,uni-app 什么时候能跟进?
 ASCII characters can't be displayed properly either.
After I cleanup the global cache dir (~/.bun/install/cache), all these registries failed, I'm confused... - https://registry.npmjs.org - https://registry.npmmirror.com - https://mirrors.cloud.tencent.com/npm/ - https://mirrors.huaweicloud.com/repository/npm/
> @bamf2077 does your computer have permission to access `~/.bun/install/cache`? yes, installation only fails on `oxlint` ``` $ bun install prettier eslint bun add v1.1.9 (bb13798d) installed [email protected] with binaries:...
@Jarred-Sumner ``` $ bun install @esbuild/win32-x64 @eslint/js @vue/eslint-config-typescript bun add v1.1.9 (bb13798d) installed @esbuild/[email protected] installed @eslint/[email protected] installed @vue/[email protected] 138 packages installed [13.92s] $ bun install oxlint bun add v1.1.9 (bb13798d)...
I made some more test: Case 1: Delete cache dir, run `bun install` in another repo, which includes `oxlint` as a devDependency. `package.json` content: ```json { "dependencies": { "@dcloudio/uni-app": "3.0.0-alpha-4010720240511003",...
[#7485 #issuecomment-2933800992](https://github.com/nolimits4web/swiper/issues/7485#issuecomment-2933800992) If you're using Vite, please read comment above. If not, you may have to read your bundler's document for assets handling reference.
我也遇到了类似的条件编译问题,只不过是在配置文件中。 下方 `pages.config.ts` 中无论用哪一种条件注释写法,`blurEffect` 和 `fontSize` 属性都被编译到了微信小程序端的 `pages.json` 文件中 ```js import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages' export default defineUniPages({ pages: [], globalStyle: {}, tabBar: { // #ifndef MP blurEffect: 'light',...
5 years later....