mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
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.
This commit is contained in:
parent
12668b9939
commit
a6eb6e75b0
@ -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
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user