-
-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18629d9
commit c488c3e
Showing
2 changed files
with
18 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
'preact-cli': major | ||
--- | ||
|
||
Removes support for automatic async routes via `@preact/async-loader`. | ||
|
||
Instead of magic directories, users can use `preact-iso`'s `lazy()` to split routes & components as they wish from anywhere. | ||
|
||
This should be a lot more powerful and transparent compared to the previous setup. | ||
|
||
```js | ||
// before | ||
import Home from './routes/home'; | ||
|
||
// after | ||
import { lazy } from 'preact-iso'; | ||
const Home = lazy(() => import('./routes/home.js')); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters