From a6eb6e75b0bea09ddcb127689cde77b4e75f86f2 Mon Sep 17 00:00:00 2001 From: Cam Sloan Date: Mon, 9 Nov 2020 09:10:42 -0500 Subject: [PATCH] Update examples to reference preact/compat instead of preact (#750) aliasing react=preact doesn't work because the main preact package actually doesn't contain any default exports. So the more likely example would be to reference preact/compat. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b8161c..03cdeb5 100644 --- a/README.md +++ b/README.md @@ -248,7 +248,7 @@ Options Examples $ microbundle build --globals react=React,jquery=$ $ microbundle build --define API_KEY=1234 - $ microbundle build --alias react=preact + $ microbundle build --alias react=preact/compat $ microbundle watch --no-sourcemap # don't generate sourcemaps $ microbundle build --tsconfig tsconfig.build.json ```