pinafore/routes/_utils/asyncModules.js

39 lines
1.1 KiB
JavaScript
Raw Normal View History

2018-01-15 02:13:42 +01:00
const importURLSearchParams = () => import(
/* webpackChunkName: 'url-search-params' */ 'url-search-params'
).then(Params => {
window.URLSearchParams = Params
Object.defineProperty(window.URL.prototype, 'searchParams', {
get() {
return new Params(this.search)
}
})
})
2018-01-15 08:24:27 +01:00
const importTimeline = () => import(
/* webpackChunkName: 'Timeline' */ '../_components/Timeline.html'
).then(mod => mod.default)
const importIntersectionObserver = () => import(
/* webpackChunkname: 'intersection-observer' */ 'intersection-observer'
)
2018-01-17 09:06:24 +01:00
const importRequestIdleCallback = () => import(
/* webpackChunkName: 'requestidlecallback' */ 'requestidlecallback'
)
2018-01-19 05:57:15 +01:00
const importIndexedDBGetAllShim = () => import(
/* webpackChunkName: 'indexeddb-getall-shim' */ 'indexeddb-getall-shim'
)
2018-01-19 06:25:12 +01:00
const importOfflineNotification = () => import(
/* webpackHunkName: 'offlineNotification' */ '../_utils/offlineNotification'
)
2018-01-15 02:13:42 +01:00
export {
importURLSearchParams,
importTimeline,
2018-01-17 09:06:24 +01:00
importIntersectionObserver,
2018-01-19 05:57:15 +01:00
importRequestIdleCallback,
2018-01-19 06:25:12 +01:00
importIndexedDBGetAllShim,
importOfflineNotification
2018-01-15 02:13:42 +01:00
}