We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
H5
https://github.com/Sociosarbis/taro-preset-bug 浏览器版本: Edge 91 使用框架: Vue 3
yarn build:h5
成功编译
报错:Unterminated regular expression.
Taro CLI 3.2.10 environment info: System: OS: Windows 10 Binaries: Node: 14.15.0 - D:\nodejs\node.EXE Yarn: 1.22.5 - E:\Yarn\bin\yarn.CMD
这个问题原因是 01ba9a6 这个提交,虽然可让ts编译,但也带来了两个影响。
01ba9a6
由于.jsx或vue中使用.jsx和.tsx的扩展名都不为 .tsx,同时也没有将preset-typescript的isTSX的设为true,导致会将babel的jsx parser插件去掉。详情可查看@babel/plugin-syntax-typescript的源码
.jsx
.tsx
isTSX
@babel/plugin-syntax-typescript
The text was updated successfully, but these errors were encountered:
fix(babel-preset-taro): fix NervJS#9659
9513f4e
9d4954d
fix(babel-preset-taro): fix #9659 (#9660)
1f09441
* fix(babel-preset-taro): fix #9659 * fix(babel-preset-taro): add @vue/babel-plugin-jsx and fix regression bug * feat(babel-preset-app): 兼容vue2的jsx配置,增加vueJsx参数 Co-authored-by: fengjianlin <fengjianlin@moyi365.com> Co-authored-by: chenjiajian <798095202@qq.com>
Successfully merging a pull request may close this issue.
相关平台
H5
复现仓库
https://github.com/Sociosarbis/taro-preset-bug
浏览器版本: Edge 91
使用框架: Vue 3
复现步骤
yarn build:h5
期望结果
成功编译
实际结果
报错:Unterminated regular expression.
环境信息
补充信息
这个问题原因是
01ba9a6
这个提交,虽然可让ts编译,但也带来了两个影响。由于.jsx或vue中使用
.jsx
和.tsx
的扩展名都不为.tsx
,同时也没有将preset-typescript的isTSX
的设为true,导致会将babel的jsx parser插件去掉。详情可查看@babel/plugin-syntax-typescript
的源码The text was updated successfully, but these errors were encountered: