9b098f549a
* Generate sourcemaps for core files that pass through Babel * Run files through Babel instead of tsc * Get rid of wildcard helper * Get rid of wildcard helper * Remove unused file * Update wildcard imports * Add exclude * Get rid of object-assign helper * Use Object.assign as it gives better output Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
9 lines
247 B
TypeScript
9 lines
247 B
TypeScript
import React from 'react'
|
|
|
|
type CaptureFn = (moduleName: string) => void
|
|
|
|
export const LoadableContext = React.createContext<CaptureFn | null>(null)
|
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
LoadableContext.displayName = 'LoadableContext'
|
|
}
|