From 3e26a1906d16acc60dddfb6509d325c0459d4778 Mon Sep 17 00:00:00 2001 From: Ryan Elian Date: Wed, 7 Apr 2021 18:20:20 +0700 Subject: [PATCH] Remove appendExtension option from vue-loader. --- bin/TypeScriptBuildEngine.js | 3 +-- src/TypeScriptBuildEngine.ts | 3 +-- templates/vue/client/js/vue-renderer.ts | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/TypeScriptBuildEngine.js b/bin/TypeScriptBuildEngine.js index 6a3d6511..463df252 100644 --- a/bin/TypeScriptBuildEngine.js +++ b/bin/TypeScriptBuildEngine.js @@ -77,8 +77,7 @@ class TypeScriptBuildEngine { loader: this.vueLoaderPath, ident: 'vue', options: { - transformAssetUrls: {}, - appendExtension: true + transformAssetUrls: {} } }] }; diff --git a/src/TypeScriptBuildEngine.ts b/src/TypeScriptBuildEngine.ts index 76a4e625..291d96ac 100644 --- a/src/TypeScriptBuildEngine.ts +++ b/src/TypeScriptBuildEngine.ts @@ -128,8 +128,7 @@ export class TypeScriptBuildEngine { loader: this.vueLoaderPath, ident: 'vue', options: { - transformAssetUrls: {}, // remove src and SVG xlink:href resolution - appendExtension: true + transformAssetUrls: {} // remove src and SVG xlink:href resolution } }] }; diff --git a/templates/vue/client/js/vue-renderer.ts b/templates/vue/client/js/vue-renderer.ts index 045aef7e..eeed8f52 100644 --- a/templates/vue/client/js/vue-renderer.ts +++ b/templates/vue/client/js/vue-renderer.ts @@ -39,7 +39,7 @@ function convertElementAttributesToPropsMap(el: Element): Record * @param factory * @param configure */ -export function renderAsyncComponent(tag: string, factory: VueAsync, configure?: ConfigureVueApp) { +export function renderAsyncComponent(tag: string, factory: VueAsync, configure?: ConfigureVueApp): void { const ac = Vue.defineAsyncComponent(factory); const elements = document.getElementsByTagName(tag);