79232502

Date: 2024-11-28 03:31:07
Score: 1.5
Natty:
Report link

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,
    ...

  }

]
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • User mentioned (1): @suamikim
  • Low reputation (0.5):
Posted by: Trong