You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"error Bundle mode does not support preserving JSX syntax. Set "bundle" to "false" or change the JSX runtime to \`automatic\` or \`classic\`. Check out https://rslib.rs/guide/solution/react#jsx-transform for more details.",
-**CLI:**`--entry <path>` (repeatable, e.g. `--entry index=src/index.ts` or `--entry src/index.ts`)
24
+
-**CLI:**`--entry <path>`. Can be repeated, e.g., `--entry index=src/index.ts` or `--entry src/index.ts`.
25
+
26
+
The CLI argument supports two formats:
27
+
1.`key=value`: Explicitly specify the entry name, e.g., `--entry main=src/main.ts`
28
+
2.`value`: Only specify the path, in which case the basename of the file (without extension) will be automatically used as the entry name. For example, `--entry src/index.ts` will generate an entry named `index`. If there are name conflicts, numeric suffixes (starting from 0) will be added to all conflicting entries, e.g., `index0`, `index1`.
25
29
26
30
Used to set the entry modules for building.
27
31
@@ -44,7 +48,6 @@ const defaultEntry = {
44
48
};
45
49
```
46
50
47
-
When no name is provided, the CLI assigns placeholders such as `index`, `entry2`, etc. automatically.
48
51
:::info
49
52
Check out the [lib.bundle](/config/lib/bundle#set-entry) to learn more about how to set entry for bundle and bundleless project.
0 commit comments