sourcemap-codec deprecated warning
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
We also have to wait @rollup/plugin-commonjs
, rollup-plugin-node-polyfills
, @rollup/plugin-inject
, @rollup/plugin-replace
to upgrade their magic-string
deps.
https://github.com/rollup/plugins/pull/1373 is merged :)
https://github.com/remorses/esbuild-plugins/pull/19 This PR is also blocking...
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!
@ice1000 Unfortunately it's reversed 😢 https://github.com/remorses/esbuild-plugins/issues/28#issuecomment-1406309742
@MBoretto The fix would be helping me re-implement it in https://github.com/remorses/esbuild-plugins/pull/29 without that bug 🤷♂️
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.
Fixed in v3.3.0-alpha.6.
@esbuild-plugins/node-modules-polyfill
is a dev dep and won't affect in userland.