vite-plugin-style-import
vite-plugin-style-import copied to clipboard
无法使用可选链
插件源码中使用了可选链,但是可选链的 node版本需要 14+,文档中是兼容到node 12+,文档需要更新下:
configResolved(resolvedConfig) {
needSourcemap = !!resolvedConfig.build.sourcemap;
external = resolvedConfig?.build?.rollupOptions.external ?? void 0;
},
I am having the same problem. Any solution or workaround please?
I am having the same problem. Any solution or workaround please?
Maybe upgrading your Node version to 14+ can solve this problem
yup, upgrading to Node 14 solved it. thx
I have upgraded to Node 16 but it still doesn't solve the problem
I have upgraded to Node 16 but it still doesn't solve the problem upgrading to Node 14