rsnext/packages/next/next-server/lib/amp-context.ts
Tim Neutkens 9b098f549a
Add sourcemaps to Next.js core compilation (#13049)
* 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>
2020-05-19 09:09:59 +02:00

7 lines
200 B
TypeScript

import React from 'react'
export const AmpStateContext: React.Context<any> = React.createContext({})
if (process.env.NODE_ENV !== 'production') {
AmpStateContext.displayName = 'AmpStateContext'
}