Babel preset for Remax, a framework for building mini-programs (WeChat, Alipay, etc.) with React. This package (v1.3.14, stable, actively maintained) provides a pre-configured Babel transform pipeline for Remax projects, including JSX handling, TypeScript support, and environment-specific optimizations. Differentiates from generic Babel presets by tailoring transforms for mini-program runtime constraints and Remax's React-like API.
npm install babel-preset-rsmaxVerified import paths — ran on the pinned version, not inferred.
Configure Babel with the Remax preset for WeChat mini-programs, enabling TypeScript and removing propTypes in production.
Always use array syntax with options object, even if empty: ['babel-preset-rsmax', {}]Update your project to target mini-programs only, or stick with v1.x if you need React Native support.
Remove `importStyle` from preset options. Use separate Babel plugins for style imports if needed.
Upgrade @babel/core to at least 7.4.0.
Run 'npm install babel-preset-rsmax --save-dev' or 'yarn add babel-preset-rsmax --dev'.
Ensure you pass options as object in array: ['babel-preset-rsmax', { pluginTarget: 'wechat' }]Run 'npm install @babel/core --save-dev'.
Make sure your file has extension .js/.jsx/.ts/.tsx and that Babel is configured with correct presets.