This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
feat: 支持使用 TypeScript 和 CSS 预处理语言编写小程序原生页面/组件 #1512
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Remax 已经支持了混合开发模式,这可以很方便将已有项目迁移到 Remax 或者在 Remax 项目使用小程序原生语法编写对性能要求较高的页面。
但是目前 Remax 在编译的时候只能够识别出 js 和小程序原生 css 格式的,对于使用 ts 编写的页面没有处理。对此,我做了一些调整,使得 Remax 在编译的时候能够正确处理原生的 TS 和 Less 文件。这样我们在 Remax 项目中使用小程序原生语法的时候仍能使用 TypeScript 书写逻辑代码,以及使用 Less / Sass / Stylus 等 CSS 预处理语言编写样式文件。