Subscribe on changes!

sourcemap-codec deprecated warning

avatar
Dec 12th 2022

Vue version

3.2.45

Link to minimal reproduction

Ignore

Steps to reproduce

Install a package depending on @vue/reactivity-transform or @vue/compiler-sfc. These two packages use magic-string of an old version which depends on deprecated sourcemap-codec

What is expected?

No warning

What is actually happening?

PNPM gives the following warning:

 WARN  deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead

System Info

No response

Any additional comments?

According to sxzz, require https://github.com/rollup/plugins/pull/1373 to be merged

avatar
Dec 13th 2022

We also have to wait @rollup/plugin-commonjs, rollup-plugin-node-polyfills, @rollup/plugin-inject, @rollup/plugin-replace to upgrade their magic-string deps.

relate PR https://github.com/rollup/plugins/pull/1373

avatar
Dec 17th 2022
avatar
Jan 24th 2023

I was about to open an issue but I see you all are already on top of it. Keep up the great work, team Vue!

avatar
Jan 31st 2023

Is there any quick fix for that?

avatar
Jan 31st 2023

@MBoretto The fix would be helping me re-implement it in https://github.com/remorses/esbuild-plugins/pull/29 without that bug 🤷‍♂️

avatar
Feb 1st 2023

I added https://github.com/remorses/esbuild-plugins/pull/32 on top of @MichaelDeBoey PR to fix those internal modules. It's quite hard to test in that repo but I think it solve the issue.

avatar
Apr 26th 2023

Has the problem been resolved?

avatar
Apr 27th 2023

Fixed in v3.3.0-alpha.6.

@esbuild-plugins/node-modules-polyfill is a dev dep and won't affect in userland.

avatar
Apr 27th 2023

Nice!!