Awen

Results 9 issues of Awen

#### 组件代码 ``` import { useState } from "rax"; const Index = () => { const [count, setCount] = useState(0); const addCount = () => { setCount(count + 1); };...

NeedPR

## Current behavior I have found that It only generates the changelog with commit messages when commit type is 'feat' or 'fix' . When I use the 'config' commit type,...

Now, webpackConfig parameter just supports the file path which is not convenient as an object. So Why not supporting an object for webpackConfig parameter just like the tsConfig parameter?

[关联issue](https://github.com/alibaba/rax/issues/2336) #### 解决方案 在`build.json`中增加字段`envOptions`, 用于修改[此处](https://github.com/raxjs/miniapp/blob/d779db910b50b1f312363275c2e54c214a734182/packages/jsx2mp-loader/src/output.js#L67)`@babel/preset-env`插件的参数 简单实现: ##### build.json ``` { "envOptions": { "targets": { "chrome": "90" } } } ``` ##### output.js ``` [[require('@babel/preset-env'), { exclude: ['@babel/plugin-transform-regenerator'], ...envOptions }]] ```...

**新功能描述** 通过新增配置项指定,开发微信小程序插件时,npm包依赖不直接打包进vendor.js而是开发者通过微信开发者工具的“构建npm包”功能去构建依赖。 **现状及问题** 现状:npm依赖统一打包进了vendor.js 问题:假设用uni-app开发了多个插件,这些插件通过拷贝或者npm包形式在一个原生小程序项目中使用,那么vendor.js就会存在多份,其中有很多依赖内容是重复的,比如vue。 **尝试方案** 在打包时增加配置项,允许npm依赖(例如vue)在打包生成的插件代码中统一变为require("vue")的形式,而不是当前的require("xxx/common/vendor.js")。这样开发者通过在小程序主包中构建npm,就能起到多个插件能同时共用依赖的效果。 **补充信息** [uni-app开发微信小程序插件官方示例](https://github.com/devilwjp/uni-project-to-plugin) [微信小程序开发者工具构建npm文档说明](https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html)

question
doubleCheck

Sometimes I may want to set range outside the component but not througth brush.

By creating the project with react 18, I encounted the error `Cannot read properties of undefined (reading 'sourceEvent')` when selecting a range. [example](https://stackblitz.com/edit/data-driven-range-slider-react-integration-tzy9xz?file=package.json,index.js)

When I set range data as [1,2,3], it shows '.001 .002 .003' on x-axis but I want to display '1 2 3' .Is there any way to do that? [Here...

…atch before set key in map and use an array to store unkeyed children