web-infra-dev / rslib

Create JavaScript libraries in a simple and intuitive way.
https://lib.rsbuild.dev/
MIT License
477 stars 26 forks source link

[Feature]: Support same filename "index.css" "index.js" in`"bundle": false` #199

Open SoonIter opened 2 months ago

SoonIter commented 2 months ago

What problem does this feature solve?

image
import { pluginReact } from '@rsbuild/plugin-react';
import { type LibConfig, defineConfig } from '@rslib/core';

export default defineConfig({
  source: {
    entry: {
      index: ['./src/**', '!./src/env.d.ts'],
    },
  },
  lib: [
    {
      format: 'esm',
      bundle: false,
    },
  ],
  plugins: [pluginReact()],
});
image

What does the proposed API look like?

fix this

fi3ework commented 2 weeks ago

@SoonIter Just test it locally, I think this is resolved now.

SoonIter commented 2 weeks ago

@SoonIter Just test it locally, I think this is resolved now.

I handle the css file, but .svg and svgr files would meet this case too