Skip to content

chore: Upgrade Vite stack and simplify config#471

Merged
netchampfaris merged 3 commits intodevelopfrom
vite-config-update
Mar 23, 2026
Merged

chore: Upgrade Vite stack and simplify config#471
netchampfaris merged 3 commits intodevelopfrom
vite-config-update

Conversation

@netchampfaris
Copy link
Copy Markdown
Contributor

@netchampfaris netchampfaris commented Mar 20, 2026

Upgrade Vite stack and simplify config

Vite config simplification

Replaced verbose per-option plugin config with frontendRoute:

// before
frappeui({
  frappeProxy: true,
  lucideIcons: true,
  jinjaBootData: true,
  buildConfig: { indexHtmlPath: '../gameplan/www/g.html' },
})

// after
frappeui({
  frontendRoute: '/g',
})

frappe-ui now derives proxy, build output path, and __FRONTEND_ROUTE__ compile-time constant from the single frontendRoute option. The router uses __FRONTEND_ROUTE__ instead of the hardcoded /g/ base path.

Remove tiptap resolve plugin

createResolveTiptapPlugin is no longer needed — frappe-ui and gameplan now use the same tiptap v3 version, so there are no conflicting resolutions to fix.

Dependency upgrades

  • Vite 4 → 8
  • @vitejs/plugin-vue 4 → 6
  • @vitejs/plugin-vue-jsx 3 → 5
  • @tiptap/* 2 → 3
  • frappe-ui 0.1.261 → 0.1.269

Switch from pnpm to yarn

pnpm's strict dependency isolation prevents Vite 8 from discovering transitive CJS dependencies (like highlight.js and interactjs) for pre-bundling. Switched to yarn which hoists dependencies flat, matching frappe-ui's own package manager.

Updated all references: root scripts, CI workflow, devcontainer setup, and README.

- Switch package manager from pnpm to yarn
  pnpm's strict dependency isolation prevents Vite 8 from discovering
  transitive CJS dependencies (highlight.js, interactjs) for pre-bundling,
  causing runtime ESM import errors. Yarn's flat hoisting makes these
  deps visible to the optimizer.
- Upgrade Vite 4 to 8, @vitejs/plugin-vue 4 to 6, plugin-vue-jsx 3 to 5
- Upgrade @tiptap/* from v2 to v3
- Remove createResolveTiptapPlugin (unnecessary with tiptap v3)
- Remove pnpm scripts, lockfiles, and install-pnpm.sh
- Update CI workflow, devcontainer, and README for yarn
- Update frappe-ui submodule
@cypress
Copy link
Copy Markdown

cypress Bot commented Mar 23, 2026

gameplan    Run #409

Run Properties:  status check passed Passed #409  •  git commit 8b83b8bb8a ℹ️: Merge 8b512c56f645730cb9ea770b3f8df4098e2cd7ee into 3f23a55db6ef61cae41d25d0f3f6...
Project gameplan
Branch Review vite-config-update
Run status status check passed Passed #409
Run duration 00m 56s
Commit git commit 8b83b8bb8a ℹ️: Merge 8b512c56f645730cb9ea770b3f8df4098e2cd7ee into 3f23a55db6ef61cae41d25d0f3f6...
Committer Faris Ansari
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 7
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

@netchampfaris netchampfaris changed the title refactor(frontend): use frontendRoute from frappe-ui vite config chore: Upgrade Vite stack and simplify config Mar 23, 2026
@netchampfaris netchampfaris merged commit c19666b into develop Mar 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant