mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
fix problems with dll
This commit is contained in:
parent
eb872518b2
commit
0795d40bb7
@ -81,7 +81,12 @@ export default class Builder extends Tapable {
|
||||
const vendor = this.vendor()
|
||||
const vendorEntries = {}
|
||||
vendor.forEach(v => {
|
||||
vendorEntries[v] = [ v ]
|
||||
try {
|
||||
require.resolve(v)
|
||||
vendorEntries[v] = [ v ]
|
||||
} catch (e) {
|
||||
// Ignore
|
||||
}
|
||||
})
|
||||
return vendorEntries
|
||||
}
|
||||
|
@ -174,7 +174,9 @@ export default function webpackClientConfig () {
|
||||
)
|
||||
}
|
||||
})
|
||||
debug('[DLL] ' + _dlls.join(','))
|
||||
if (_dlls.length) {
|
||||
debug('Using dll for ' + _dlls.join(','))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user