swc-loader 更换项目配置里的babel-loader (@vue/cli-plugin-babel)build后的耗时如下,由于没有设置swc配套的插件和预设,结果却是 swc-loader 更耗时。当没有额外配置swc相关转换规则,复用babel相关的plugin和preset,结果却出乎意料,使用babel-loder是1.75s,swc-loader是3.55s。
webpack-loader swc Updated Mar 14, 2023 JavaScript sxzz / ast-explorer Sponsor Star 309 Code Issues Pull requests A web tool to explore the ASTs generated by parsers. css html markdown flow yaml babel sql vue eslint svelte ast explorer wxml swc hermes acorn Updated Apr 9, 2025 Type...
swc-confidential - A plugin to hide confidential information. transform-imports - A plugin to transform import paths. prefresh - A plugin to provide Hot Module Reloading for Preact. 3rd-party swc-plugin-vue-jsx - A SWC plugin for transforming Vue JSX. graphql-tag-swc-plugin - A SWC plugi...
Error: Build failed with 3 errors: node_modules/@swc/core/binding.js:159:23: ERROR: No loader is configured for ".node" files: node_modules/@swc/core-darwin-arm64/swc.darwin-arm64.node node_modules/@swc/core/index.js:71:35: ERROR: Could not resolve "@swc/wasm" node_modules/fsevent...
"swc-loader": "^0.2.3", "terser": "^5.7.0", "terser-webpack-plugin": "^5.3.6", "thread-loader": "^3.0.4", "ts-loader": "^9.2.7", "ts-node": "^10.9.1", "typescript": "^5.1.6", "vue-loader": "^17.0.0", "unplugin-vue-components": "^0.24.1", "vconsole": "...
use swc_ecma_loader::resolvers::{ lru::CachingResolver, node::NodeModulesResolver, tsc::TsConfigResolver, }; Expand All @@ -155,6 +155,8 @@ use swc_ecma_visit::{FoldWith, VisitMutWith, VisitWith}; pub use swc_error_reporters::handler::{try_with_handler, HandlerOpts}; pub use swc...
使用框架: Vue 3 复现步骤 项目直接初始化后在服务器Linux直接进行部署失败,taro info 都无法执行 期望结果 正常编译通过 实际结果 在服务器CI部署taro info命令都无法执行,降级@swc/core也无效 环境信息 Taro CLI 3.6.20 environment info: System: OS: macOS 14.2.1 Shell: 5.9 - /bin/zsh Binaries: Node:...
小程序基础库: 无 使用框架: Vue 3 复现步骤 小程序使用 npm run test:weapp 无法启动 报 No loader is configured for ".node" files: node_modules/@swc/core-darwin-arm64/swc.darwin-arm64.node 期望结果 排查一下啥问题 实际结果 修复该问题 环境信息 Browserslist: caniuse-lite is outdated. Please...
loader: 'babel-loader', loader: 'swc-loader', options: { configFile: false, cacheDirectory: process.env.NODE_ENV !== 'production', assumptions: { setPublicClassFields: true, sourceMaps: true, jsc: { parser: { syntax: 'typescript', tsx: true, }, }, env: { development: { plugins:...