mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
refactor: remove static class hotfix since it has been fixed in vue
This commit is contained in:
parent
d723e49b2b
commit
afd1cd3247
@ -310,20 +310,6 @@ export function getNuxtConfig(_options) {
|
|||||||
if (vueLoader.productionMode === undefined) {
|
if (vueLoader.productionMode === undefined) {
|
||||||
vueLoader.productionMode = !options.dev
|
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 = [
|
const styleLoaders = [
|
||||||
'css', 'cssModules', 'less',
|
'css', 'cssModules', 'less',
|
||||||
'sass', 'scss', 'stylus', 'vueStyle'
|
'sass', 'scss', 'stylus', 'vueStyle'
|
||||||
|
Loading…
Reference in New Issue
Block a user