booleantrueSpecify whether to bundle the library, which is known as bundle mode when bundle is set to true, and bundleless mode when set to false.
See bundle / bundleless for more details.
We should specify the entry file for the build.
When bundle is set to true, the entry should be set to the entry file. The default entry in bundle mode is src/index.(ts|js|tsx|jsx|mjs|cjs). You should make sure that the entry file exists, or customize entry through the source.entry configuration.
Example:
When bundle is set to false, the entry should be set to a glob pattern to include all the files. The default entry in bundleless mode is src/**.
Example:
You can also use with an exclamation mark to exclude some files.
For below file structure of source code:
When bundle is set to true, as known as bundle mode, Rslib will bundle the library into a single file.
When bundle is set to false, as known as bundleless mode, Rslib will transform the code into multiple files.