Skip to content

Commit 6eb813b

Browse files
more
1 parent 5b550cf commit 6eb813b

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
### Upcoming
2+
3+
#### Enhancements
4+
5+
- Bump to React 19.x, and new vite build system.
6+
7+
18
### 26.6.0
29

310
#### Breaking changes

frontend/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
* **Development Workflow**: The README describes how to run the project in development (`npm run start`) or build for production (`npm run build`).
66

7-
* **Build Configuration**: `package.json` lists dependencies such as React 18, Material-UI, mqtt.js, js-yaml, etc., along with scripts for starting, building, linting, and testing the app.
7+
* **Build Configuration**: `package.json` lists dependencies such as React 19, Material-UI, mqtt.js, js-yaml, etc., along with scripts for starting, building, linting, and testing the app.
88

99
* **Main Application**: `App.jsx` sets up Material-UI theming and React Router routes for pages like `/overview`, `/pioreactors`, `/export-data`, `/plugins`, and more.
1010

frontend/vite.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ function transformJsFilesWithJsx() {
66
name: "transform-js-files-with-jsx",
77
enforce: "pre",
88
async transform(code, id) {
9-
if (!/src\/.*\.js$/.test(id)) {
9+
const filePath = id.split("?")[0];
10+
if (!/src\/.*\.js$/.test(filePath)) {
1011
return null;
1112
}
1213

13-
return transformWithEsbuild(code, id, {
14+
return transformWithEsbuild(code, filePath, {
1415
loader: "jsx",
1516
jsx: "automatic",
1617
});

0 commit comments

Comments
 (0)