diff --git a/packages/webpack-plugin/lib/template-compiler/compiler.js b/packages/webpack-plugin/lib/template-compiler/compiler.js index 4f5622f164..2a0020b3fe 100644 --- a/packages/webpack-plugin/lib/template-compiler/compiler.js +++ b/packages/webpack-plugin/lib/template-compiler/compiler.js @@ -2021,10 +2021,10 @@ function postProcessAliComponentRootView (el, options, meta) { replaceNode(el, componentWrapView, true) addChild(componentWrapView, el) + processAttrs(componentWrapView, options) postMoveBaseDirective(componentWrapView, el, options) if (options.runtimeCompile) { - processAttrs(componentWrapView, options) collectDynamicInfo(componentWrapView, options, meta) postProcessAttrsDynamic(componentWrapView, config[mode]) }