Skip to content

Commit 4c1e8a4

Browse files
committed
build: disable splitting
1 parent 473a817 commit 4c1e8a4

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

packages/commandkit/src/cli/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export async function bootstrapProductionBuild(config: any) {
4040
silent: true,
4141
watch: false,
4242
cjsInterop: true,
43+
splitting: false,
4344
entry: [src, '!dist', '!.commandkit', `!${outDir}`],
4445
esbuildPlugins: [commandkitPlugin()],
4546
jsxFactory: 'CommandKit.createElement',

packages/commandkit/src/cli/development.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export async function bootstrapDevelopmentServer(opts: any) {
6565
entry: [src, '!dist', '!.commandkit', `!${outDir}`].filter(Boolean),
6666
watch: watchMode,
6767
cjsInterop: true,
68+
splitting: false,
6869
jsxFactory: 'CommandKit.createElement',
6970
jsxFragment: 'CommandKit.Fragment',
7071
async onSuccess() {

packages/commandkit/tsup.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ import { esbuildPluginUseMacro } from 'use-macro';
33

44
export default defineConfig({
55
format: ['cjs', 'esm'],
6-
entry: ['./src'],
6+
entry: ['./src/index.ts'],
77
sourcemap: true,
88
minifyIdentifiers: false,
99
minifySyntax: true,
1010
minifyWhitespace: true,
1111
keepNames: true,
1212
dts: true,
1313
shims: true,
14+
splitting: false,
1415
skipNodeModulesBundle: true,
1516
clean: true,
1617
target: 'node16',

0 commit comments

Comments
 (0)