Skip to content

Commit c442b66

Browse files
authored
Merge pull request #26 from mjanssen/master
Updated some things in the package.json and example in readme
2 parents 195b099 + 5ba5dab commit c442b66

File tree

3 files changed

+1190
-1189
lines changed

3 files changed

+1190
-1189
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# preact-async-route
22
[![build](https://api.travis-ci.org/prateekbh/preact-async-route.svg?branch=master)](https://api.travis-ci.org/prateekbh/preact-async-route.svg?branch=master)
3+
[![gzip size](http://img.badgesize.io/https://unpkg.com/preact-async-route/dist/index.min.js?compression=gzip)](https://unpkg.com/preact-async-route/dist/index.min.js)
34

45
Async route component for [preact-router](https://github.com/developit/preact-router)
56

@@ -38,7 +39,7 @@ check README :point_down:
3839
props -- props that component will recive upon being loaded
3940
*/
4041
function getProfile(url, cb, props){
41-
return System.import('../component/Profile/Profile.jsx').then(module => module.default);
42+
return import('../component/Profile/Profile.jsx').then(module => module.default);
4243
}
4344

4445
const Main = () => (

0 commit comments

Comments
 (0)