generated from rspack-contrib/rsbuild-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can it support multiple output with different libraryNames? #14
Comments
Hi, it is recommended to use Rslib if you are building component libraries. |
OK, thanks |
Rslib fail too. All output use a same umdName. I want every js use different names. Just like this output with Rollup: import { defineConfig } from 'rollup'
export default defineConfig([
{
input: 'src/component-1/index.js',
output: [
{
name: 'component__1',
file: 'dist/component-1/index.js',
format: 'umd',
},
],
},
{
input: 'src/component-2/index.js',
output: [
{
name: 'component__2',
file: 'dist/component-2/index.js',
format: 'umd',
},
],
},
]) |
Can you file an issue to the Rslib repo? Thanks! |
Ok. I file the issue #579 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get multiple output through this options:
It will get
dist/component-1/index.js
、dist/component-2/index.js
.I want all the
index.js
having a libraryName when I use this UMD plugin. But it only supports setting a single name.The text was updated successfully, but these errors were encountered: