Closed chenjiahan closed 2 weeks ago
Add a new preactPath option, this is useful in a monorepo to specify the correct preact package path.
preactPath
preact
const path = require("node:path"); new PreactRefreshPlugin({ preactPath: path.dirname(require.resolve("preact/package.json")), });
Add a new
preactPath
option, this is useful in a monorepo to specify the correctpreact
package path.