rstackjs / rstackjs/rsbuild-plugin-rem
I want to add mobile compatibility to my component library project. What should I do?
@Timeless0911 is already working on this.
Since Apr 9, 2025.
- Dominant language
- TypeScript
- Stars
- 7
- Forks
- 1
- Avg merge
- 3h 7m
- Merged PRs (30d)
- 7
Description
Here's my configuration code, but it didn't work.
import { pluginReact } from '@rsbuild/plugin-react';
import { pluginRem } from '@rsbuild/plugin-rem';
import { pluginSvgr } from '@rsbuild/plugin-svgr';
import { defineConfig } from '@rslib/core';
export default defineConfig({
source: {
entry: {
index: ['./src/**'],
},
},
lib: [
{
bundle: false,
dts: true,
format: 'esm',
},
],
output: {
target: 'web',
},
plugins: [
pluginReact(),
pluginSvgr(),
pluginRem({
pxtorem: {
propList: ['*', '!border-width'], // 不转换 border-width 属性
},
}),
],
});
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.