pinafore/routes/_utils/asyncModules.js

24 lines
638 B
JavaScript
Raw Normal View History

2018-01-15 01:13:42 +00: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 07:24:27 +00:00
const importTimeline = () => import(
/* webpackChunkName: 'Timeline' */ '../_components/Timeline.html'
).then(mod => mod.default)
const importIntersectionObserver = () => import(
/* webpackChunkname: 'intersection-observer' */ 'intersection-observer'
)
2018-01-15 01:13:42 +00:00
export {
importURLSearchParams,
importTimeline,
importIntersectionObserver
2018-01-15 01:13:42 +00:00
}