rsnext/test/integration/basic/pages/process-env.js
Keanu Lee d120f14d1c Use modern syntax in Next client code (e.g. async await) (#7014)
* Use async/await in build output

* Run next client libraries through plugin-transform-modules-commonjs

* Fix missing includes
2019-05-01 19:16:52 +02:00

9 lines
251 B
JavaScript

export default () => (
<div id='node-env'>{process.env.NODE_ENV}</div>
);
// Just some async function in app code. Depending on how this is transpiled,
// it can cause regenerator to be imported.
(async function () {
await console.log('hi')
})()