rstackjs / rstackjs/rsbuild-plugin-rem

I want to add mobile compatibility to my component library project. What should I do?

Open
#18 2 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.