Results 103 comments of mirari

https://codepen.io/mirari/pen/ZwpGBO

Refer to this example: https://codepen.io/mirari/pen/GRMBrBv Overriding the original css to change the style. https://github.com/fengyuanchen/viewerjs#toolbar

我认为这其实算是esbuild的pure组件bug,需要看下它的配置项是否允许例外,将node_modules排除

我看到esbuild的issue有讨论类似问题,不过没有提到node_modules内部出现此类问题的情况,我空的时候去问下。你也可以找找是否有关闭pure配置以外的其他途径。 https://github.com/evanw/esbuild/issues/1879

能提供下你的框架环境吗?我需要尝试复现这个问题。

已提交[issue](https://github.com/evanw/esbuild/issues/2445),esbuild反馈是bug,之后会修复。 目前可以暂时关闭pure配置项,或者使用drop配置项来完全移除console.log,代价是console.error等方法也会移除。 ``` drop: ['console', 'debugger'], ```

用的是vue3吗?需要使用vue3-viewer https://github.com/mirari/v-viewer/tree/v3

需要提供调用代码来判断了

目前应该不支持,需求需要去viewerjs下面提issue,v-viewer只是一个壳子 https://github.com/fengyuanchen/viewerjs/issues

This may be `nuxt`'s config problem, have you tried to import other css files?