diff --git a/.changeset/yellow-garlics-camp.md b/.changeset/yellow-garlics-camp.md new file mode 100644 index 0000000..b770baa --- /dev/null +++ b/.changeset/yellow-garlics-camp.md @@ -0,0 +1,6 @@ +--- +"tw2panda": patch +"tw2panda-vscode": patch +--- + +Allow ejecting of base presets based on `eject: true` (in `panda.config.ts` or passed as argument) diff --git a/packages/tw2panda/src/panda-context.ts b/packages/tw2panda/src/panda-context.ts index 8b88f0a..8271c57 100644 --- a/packages/tw2panda/src/panda-context.ts +++ b/packages/tw2panda/src/panda-context.ts @@ -32,7 +32,7 @@ interface PartialConfig extends Omit { const createContext = (conf: PartialConfig) => { const generator = createGenerator({ ...conf, - config: mergeConfigs([presetBase, presetTheme as any, conf.config]), + config: mergeConfigs(conf.config.eject ? [conf.config] : [presetBase, presetTheme as any, conf.config]), }); const files = new Map();