mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-24 01:50:34 +03:00
refactor: use forEach not map
This commit is contained in:
committed by
Alexander Lichter
parent
a10fd83539
commit
5cbb5bdc52
+2
-2
@@ -41,8 +41,8 @@ export async function buildFixture(fixture, config = {}) {
|
|||||||
const webpackStats = await webpackRun(webpackConfig)
|
const webpackStats = await webpackRun(webpackConfig)
|
||||||
|
|
||||||
// for test debugging
|
// for test debugging
|
||||||
webpackStats.errors.map(e => console.error(e)) // eslint-disable-line no-console
|
webpackStats.errors.forEach(e => console.error(e)) // eslint-disable-line no-console
|
||||||
webpackStats.warnings.map(e => console.warn(e)) // eslint-disable-line no-console
|
webpackStats.warnings.forEach(e => console.warn(e)) // eslint-disable-line no-console
|
||||||
|
|
||||||
const vueApp = await import(path.resolve(fixturePath, 'server')).then(m => m.default || m)
|
const vueApp = await import(path.resolve(fixturePath, 'server')).then(m => m.default || m)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user