diff --git a/packages/components/scripts/post-build/react.js b/packages/components/scripts/post-build/react.js index fdcbea8f661..000aea42d24 100644 --- a/packages/components/scripts/post-build/react.js +++ b/packages/components/scripts/post-build/react.js @@ -75,6 +75,10 @@ module.exports = (tmp) => { from: '={true}', to: '' }, + { + from: '{ cls }', + to: '{ cls, uuid }' + }, { from: '} from "../../utils"', to: ', filterPassingProps } from "../../utils"' @@ -99,10 +103,6 @@ module.exports = (tmp) => { { from: /<\/>/g, to: '' - }, - { - from: '{ cls }', - to: '{ cls, uuid }' } ];