Vue v-cloak doesn't work.

problem description

vue v-cloak does not work after webpack compiles css

the environmental background of the problems and what methods you have tried

write

to the css file
import template from "./tmpl.html";
let style = require("./style.css");
module.exports.createApp = function () {
    return new Vue({
        template,
        data: {
            style,
        }
    })
}
May.29,2021

Visual use of css module, requires switching to global scope.

:global([v-cloak]) {
  display: none;
}
Menu