mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-12 12:42:25 +03:00
test: use build/dist for e2e testing (#421)
* test: use build/dist for e2e testing to prevent errors due to wrong build configs * test: use wrong build conf to test the test * test: exclude dist for babel-loader in test build * chore: optimize more for ie9 prefer not to use language features which needs to be transpiled for ie9. Eg for..of to forEach and no spreads * fix: continue
This commit is contained in:
Vendored
+8
-4
@@ -1,10 +1,14 @@
|
||||
import Vue from 'vue'
|
||||
import VueMeta from '../../../src'
|
||||
import { _import, getVueMetaPath } from '../../utils/build'
|
||||
import App from './App.vue'
|
||||
import createRouter from './router'
|
||||
|
||||
Vue.use(VueMeta)
|
||||
export default async function createServerApp () {
|
||||
const VueMeta = await _import(getVueMetaPath())
|
||||
|
||||
App.router = createRouter()
|
||||
Vue.use(VueMeta)
|
||||
|
||||
export default new Vue(App)
|
||||
App.router = createRouter()
|
||||
|
||||
return new Vue(App)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user