mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
22 lines
523 B
JavaScript
22 lines
523 B
JavaScript
|
import pkg from '../../package.json'
|
||
|
|
||
|
// Dependencies that will be installed alongise with nuxt package
|
||
|
const packageDependencies = Object.keys(pkg.dependencies)
|
||
|
|
||
|
// Allow built in node modules
|
||
|
const nodeBuiltIn = ['path', 'fs', 'module', 'crypto', 'util']
|
||
|
|
||
|
// Optional dependencies that user should install on demand
|
||
|
const optionalDependencies = [
|
||
|
// legacy build users need this
|
||
|
'babel-polyfill'
|
||
|
]
|
||
|
|
||
|
const externals = [].concat(
|
||
|
packageDependencies,
|
||
|
nodeBuiltIn,
|
||
|
optionalDependencies
|
||
|
)
|
||
|
|
||
|
export default externals
|