Skip to content

🎥 Make videos programmatically with React

move to bundling

Jonny Burger64fb9a4f5917
diff --git a/packages/cli/src/config/index.ts b/packages/cli/src/config/index.ts
index ba4d6fd5ac..4587f25114 100644
--- a/packages/cli/src/config/index.ts
+++ b/packages/cli/src/config/index.ts
@@ -95,13 +95,13 @@ export const Config: ConfigType = {
Preview: {
setMaxTimelineTracks,
setKeyboardShortcutsEnabled,
- setEntryPoint,
},
Bundling: {
overrideWebpackConfig,
setCachingEnabled: setWebpackCaching,
setPort,
setPublicDir,
+ setEntryPoint,
},
Log: {
setLevel: setLogLevel,
diff --git a/packages/core/src/config.ts b/packages/core/src/config.ts
index 85de781ef5..5703c4d5dc 100644
--- a/packages/core/src/config.ts
+++ b/packages/core/src/config.ts
@@ -43,6 +43,11 @@ export type ConfigType = {
readonly setKeyboardShortcutsEnabled: (enableShortcuts: boolean) => void;
};
readonly Bundling: {
+ /**
+ * Specify the entry point so you don't have to specify it in the
+ * CLI command
+ */
+ readonly setEntryPoint: (src: string) => void;
/**
* Pass in a function which takes the current Webpack config
* and return a modified Webpack configuration.