boolean
true
Specify 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.
The bundleless mode is not fully supported yet, and some features like assets may not work properly.
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 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.
When bundle
is set to false
, the entry should be set a glob pattern to include all the files.
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 only transform the code into multiple files.