React Update

8 views
Skip to first unread message

Jason Siefken

unread,
Mar 7, 2023, 8:31:19 PM3/7/23
to prete...@googlegroups.com
Hi everyone! The build system for the React frontend has been switched from (the now deprecated) react-scripts to vite.

There are a couple of consequences:
   * pretext-react now must be loaded with a `<script type="module" ...>` tag. This means that current projects using the react frontend need to be recompiled with the latest Pretext (Rob just made the modification yesterday).
   * Development is much easier! When running in "hot reload mode" via `npm run start`, you can now navigate to any subfolder to see the react frontend in action. For example, you may make a symbolic link to your compiled pretext (as long as it was compiled with the debug.react.local flag) in to the pretext-react development directory, and you can then navigate to that directory and see everything live :-).

Now that `overhaul` is fully integrated, hopefully we can get serious about integrating pretext-react with all the Runestone features; maybe by the end of the summer it can be the new default!
Reply all
Reply to author
Forward
0 new messages