prefresh
prefresh copied to clipboard
Hot Module Reloading for Preact
Resolves #463 This transforms our next plugin to support both ESM as well as CJS exports CC @shaynlink
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or [setup this action...
When I start nextJS (with `yarn dev`) I have this error ``` error - Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in...
I am using these versions: ``` "@prefresh/vite": "^2.2.8" "vite": "^2.9.1" "preact": "^10.7.1" node v17.6.0 ``` I do this in vite.config.js ```js const { defineConfig } = require('vite') const prefresh =...
Dependancies: ``` "@prefresh/babel-plugin": "^0.4.1" "@prefresh/webpack": "^3.2.0" "webpack": "^4.46.0", "webpack-dev-server": "^3.11.2", "webpack-hot-middleware": "^2.25.0", "preact": "^10.5.12" ``` webpack is set up to use preact/compat There are following files: **HOC.jsx** _// This just...
When updating the `next-webpack5` test suite I noticed there are some issues with the Next 12 integration, we've seen some before with the eventual build output but never with the...
Probably an uncommon scenario in terms of how project is setup, as components are rendered into iframes. The first change reloads fine but subsequent changes nothing happens. https://user-images.githubusercontent.com/598870/122668760-c2d3cb80-d20d-11eb-99d2-e72312bde7de.mp4 sample project...
We're using previous major for both, there's some breaking changes affecting the tests like extraneous config options
Example Repo: https://github.com/verydanny/preact-nextjs-shenanigans Node Version: `14.17.1` OS: `macOS 11.4` **Steps to reproduce:** 1. Run yarn 2. Edit `pages/index.tsx` fragment return area, for example remove a link, or even change `Test`...