Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusts bundler output to work with Node. (#20)
## 💸 TL;DR Adjusts bundler output to also work with Node. ## 📜 Details * In Node, `require` calls are wrapped in a function that provides `modules` and `exports`. Redefining them caused the app to not load. * Deleting the `src.replace` line modified here fixed Node, but broke `runtime-lite`, which needs those definitions shimmed in. * The resulting code is a compromise that works in both cases, at the cost of an ugly `var` in the generated code. Sorry about that. ## 🧪 Testing Steps / Validation * Testing a simple Devvit with Play that registers a custom post until I got it to fully load and render the post!
- Loading branch information