Nuxt/distributions/nuxt-legacy/bin/nuxt-legacy.js
Pooya Parsa 9c1e0d1743 feat: migrate nuxt into monorepo (#4051)
Co-authored-by: Clark Du <clark.duxin@gmail.com>
Co-authored-by: Pooya Parsa <pooya@pi0.ir>
2018-10-18 00:58:25 +03:30

28 lines
534 B
JavaScript
Executable File

#!/usr/bin/env node
const register = require('@babel/register')
require('@babel/polyfill')
register({
presets: [
[ '@babel/env', { targets: { node: 'current' } } ]
],
ignore: [
(path) => {
// Transpile known packages
if (/(@nuxt|@nuxtjs)[\\/]/.test(path)) {
return false
}
// Ignore everything else inside node_modules
if (/node_modules/.test(path)) {
return true
}
// Transpile project files
return false
}
]
})
require('@nuxt/cli/bin/nuxt.js')