Closed dandv closed 6 years ago
@dandv Fortunately, preact-cli configures preact-compat for you! The cli uses webpack under the hood and the base configurations can be found here. Here's where react is aliased to preact-compat.
To configure webpack for any other reason, add preact.config.js
to your project's root directory. More details here.
Thanks @kevlened!
I'm new to Preact and can't figure out how to add preact-compat to an app I've just created with
preact create material myapp
. Do I go the Babel route? Webpack? There are no config files in the newly created app that I can edit and the example is almost 3 years old.