Skip to content

Commit

Permalink
feat: allow ejecting of base presets
Browse files Browse the repository at this point in the history
  • Loading branch information
astahmer committed May 23, 2024
1 parent 5ec18e9 commit 1b0b304
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/yellow-garlics-camp.md
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion packages/tw2panda/src/panda-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interface PartialConfig extends Omit<LoadConfigResult, "config"> {
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<string, string>();

Expand Down

0 comments on commit 1b0b304

Please sign in to comment.