Skip to content

How to define multiple entry points for RsLib? #3702

Answered by chenjiahan
0x80 asked this question in Q&A
Discussion options

You must be logged in to vote

Rslib can use the source.entry config of Rsbuild, here is an example:

export default defineConfig({
  lib: [
    {
      format: 'esm',
      source: {
        entry: {
          foo: './src/foo.ts',
        },
      },
    },
  ],
});

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by chenjiahan
Comment options

You must be logged in to vote
1 reply
@chenjiahan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants