Skip to content

Commit

Permalink
Migrate to @pocka/rollup-plugin-gleam
Browse files Browse the repository at this point in the history
`vite-gleam` somehow does not trigger HMR for edits to `.gleam` files
not imported from JS files. This is quite inconvenient, especially when
changing module while checking renders on Storybook.

The new plugin has tests for that and other cases as well.
  • Loading branch information
pocka committed Nov 25, 2024
1 parent 469bacf commit b316901
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"private": true,
"type": "module",
"devDependencies": {
"@pocka/rollup-plugin-gleam": "^0.1.0",
"@storybook/addon-essentials": "^8.2.8",
"@storybook/addon-interactions": "^8.2.8",
"@storybook/html": "^8.2.8",
"@storybook/html-vite": "^8.2.8",
"@storybook/test": "^8.2.8",
"@storybook/test-runner": "^0.19.1",
"typescript": "^5.5.4",
"vite": "^5.3.5",
"vite-gleam": "^0.4.3"
"vite": "^5.3.5"
},
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// SPDX-License-Identifier: Apache-2.0

import { gleam } from "@pocka/rollup-plugin-gleam";
import { defineConfig } from "vite";
import gleam from "vite-gleam";

export default defineConfig({
root: new URL("./src", import.meta.url).pathname,
Expand Down

0 comments on commit b316901

Please sign in to comment.