Skip to content

Commit

Permalink
Perfected mechanism for transpilation
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Feb 6, 2017
1 parent 8f96ab5 commit 84673b2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/serve.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env node

// Native
const path = require('path')

// Packages
const asyncToGen = require('async-to-gen/register')
const updateNotifier = require('update-notifier')
Expand All @@ -12,8 +15,11 @@ const pkg = require('../package')

// Support for keywords "async" and "await"
if (!isAsyncSupported()) {
const packageDir = path.basename(path.join(__dirname, '..'))
const modulesDir = path.join(packageDir, 'node_modules')

asyncToGen({
exclude: null,
excludes: new RegExp(`.*${modulesDir}.*`),
sourceMaps: false
})
}
Expand Down

0 comments on commit 84673b2

Please sign in to comment.