Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
Add regenerator-runtime in attempt to fix babel build
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Oct 14, 2019
1 parent 6c88bdd commit 365a06d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
"@babel/cli": "^7.6.4",
"@babel/core": "^7.6.4",
"@babel/node": "^7.6.3",
"@babel/polyfill": "^7.6.0",
"@babel/preset-env": "^7.6.3",
"dotenv": "^8.1.0",
"nodemon": "^1.19.3"
"nodemon": "^1.19.3",
"regenerator-runtime": "^0.13.3"
},
"dependencies": {
"@octokit/request": "^5.2.1",
Expand Down
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { request } from '@octokit/request'
import express from 'express'
import 'regenerator-runtime'

const env = process.env.NODE_ENV || 'development'
if (env === 'development') {
require('dotenv').config()
}

import { request } from '@octokit/request'

const PORT = process.env.PORT || 1234

import express from 'express'

const app = express()

app.get('/', async (req, res) => {
Expand Down

0 comments on commit 365a06d

Please sign in to comment.