unplugin / unplugin-turbo-console

🚀 Improve the Developer Experience of console
https://utc.yuy1n.io
MIT License
526 stars 12 forks source link

Disable plugin with comments #24

Closed shan1iu closed 8 months ago

shan1iu commented 8 months ago

Description

Disable plugin with comments like ESLint

Linked Issues

23

Additional context

I ran all the playground demo and here's result

/ turbo-console-disable / \<!-- turbo-console-disable --> // turbo-console-disable-next-line / turbo-console-disable-next-line / // turbo-console-disable-line / turbo-console-disable-line /
Vite :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
Nuxt :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
Webpack :white_check_mark: :white_check_mark: :warning: :warning: :warning: :warning:
Vue CLI :white_check_mark: :white_check_mark: :warning: :warning: :warning: :warning:
Astro - :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
Svelte - :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
Next.js :white_check_mark: - :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
Rspack X X :white_check_mark: X :white_check_mark: X

[!WARNING] With Vue CLI in .vue file, webpack cannot guarantee to detect comments change every time as expected e.g. from // turbo-console-disable-line-aaa to // turbo-console-disable-line.

stackblitz[bot] commented 8 months ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

socket-security[bot] commented 8 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@nuxt/devtools@1.0.8 environment, network Transitive: filesystem, shell +35 8.94 MB antfu
npm/@rspack/cli@0.4.1 environment, eval, filesystem, unsafe Transitive: network, shell +46 6.91 MB hardfist
npm/@rspack/core@0.4.1 environment, eval, filesystem, shell +11 4.74 MB hardfist

🚮 Removed packages: npm/@nuxt/devtools@1.0.4, npm/@rspack/cli@0.4.0, npm/@rspack/core@0.4.0

View full report↗︎