Thank you @suamikim
For someone who use Rollup, To hide the warning that Rollup outputs about use client
warning, we can use onwarn handler in Rollup config
https://rollupjs.org/configuration-options/#onwarn
rollup.config.js
const onwarn = (warning, warn) => {
if (warning.code === 'MODULE_LEVEL_DIRECTIVE') return
warn(warning)
}
export default [
// Build CJS
{
onwarn,
...
},
// Build ESM
{
onwarn,
...
}
]