From afd1cd32475e7b39ae55f04802ec18672239b317 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 17 Dec 2018 15:53:18 +0000 Subject: [PATCH] refactor: remove static class hotfix since it has been fixed in vue --- packages/config/src/options.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/config/src/options.js b/packages/config/src/options.js index bc7cb96c1d..9c10f7df4d 100644 --- a/packages/config/src/options.js +++ b/packages/config/src/options.js @@ -310,20 +310,6 @@ export function getNuxtConfig(_options) { if (vueLoader.productionMode === undefined) { vueLoader.productionMode = !options.dev } - // TODO: Remove when new release of Vue (https://github.com/nuxt/nuxt.js/issues/4312) - const staticClassHotfix = function (el) { - el.staticClass = el.staticClass && el.staticClass.replace(/\\[a-z]\b/g, '') - if (Array.isArray(el.children)) { - el.children.map(staticClassHotfix) - } - } - vueLoader.compilerOptions = vueLoader.compilerOptions || {} - vueLoader.compilerOptions.modules = [ - ...(vueLoader.compilerOptions.modules || []), - { - postTransformNode: staticClassHotfix - } - ] const styleLoaders = [ 'css', 'cssModules', 'less', 'sass', 'scss', 'stylus', 'vueStyle'