Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
钉钉小程序
使用框架: React
3.4版本升级至3.5
升级成功
升级失败
👽 Taro v3.5.0-beta.0 Taro CLI 3.5.0-beta.0 environment info: System: OS: Windows 10 Binaries: Node: 16.14.0 - D:\Program Files\nodejs\node.EXE Yarn: 1.22.17 - C:\Users\caiju\AppData\Roaming\npm\yarn.CMD npm: 8.3.1 - D:\Program Files\nodejs\npm.CMD
5.目前卡在这一步,问题在编译后的taro.js中
The text was updated successfully, but these errors were encountered:
在custom-tab-bar下就能复现 新增taro-ui以及@tarojs/plugin-platform-alipay-dd插件
贴一下config
const path = require('path'); const fs = require('fs'); const swc = require('@swc/core'); const config = { compiler: { type: 'webpack5', prebundle: { enable: true, cacheDir: path.resolve(__dirname, '../cache'), exclude: ['@tarojs/plugin-platform-alipay-dd/dist/runtime', 'taro-ui'], esbuild: { plugins: [ { name: 'esbuildResolve', setup(build) { build.onLoad({ filter: /node_modules/ }, async (args) => { const text = await fs.promises.readFile(args.path, 'utf8'); const result = await swc.transform(text, { jsc: { target: 'es5', }, }); return { contents: result.code, }; }); }, }, ], }, }, }, cache: { enable: true }, projectName: 'custom-tabbar-react', date: '2022-2-22', designWidth: 750, deviceRatio: { 640: 2.34 / 2, 750: 1, 828: 1.81 / 2 }, sourceRoot: 'src', outputRoot: 'dist', plugins: [ '@tarojs/plugin-platform-alipay-dd', ], defineConstants: { }, copy: { patterns: [ ], options: { } }, framework: 'react', mini: { postcss: { pxtransform: { enable: true, config: { } }, url: { enable: true, config: { limit: 1024 // 设定转换尺寸上限 } }, cssModules: { enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true config: { namingPattern: 'module', // 转换模式,取值为 global/module generateScopedName: '[name]__[local]___[hash:base64:5]' } } } }, h5: { publicPath: '/', staticDirectory: 'static', postcss: { autoprefixer: { enable: true, config: { } }, cssModules: { enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true config: { namingPattern: 'module', // 转换模式,取值为 global/module generateScopedName: '[name]__[local]___[hash:base64:5]' } } } } } module.exports = function (merge) { if (process.env.NODE_ENV === 'development') { return merge({}, config, require('./dev')) } return merge({}, config, require('./prod')) }
Sorry, something went wrong.
No branches or pull requests
相关平台
钉钉小程序
使用框架: React
复现步骤
3.4版本升级至3.5
期望结果
升级成功
实际结果
升级失败
环境信息
补充信息
prebundle
运行时
Qt = class extends Map{}
new Qt()
5.目前卡在这一步,问题在编译后的taro.js中

The text was updated successfully, but these errors were encountered: