From 7f21abe3f177dccc9058f20fdc4a675ea8324f1a Mon Sep 17 00:00:00 2001 From: Ben Smithett Date: Wed, 9 Feb 2022 12:02:35 +1100 Subject: [PATCH] Add explicit dependency on vfile to rollup package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `@mdx-js/rollup` [depends on vfile](https://github.com/mdx-js/mdx/blob/main/packages/rollup/lib/index.js#L16) but I think it's just working in some cases at the moment because of the transitive dependency via `@mdx-js/mdx`. My project has another transitive dependency on vfile@^4.0.0, which is the one yarn puts in the root `node_modules` and that `@mdx-js/rollup@2.0.0` ends up importing, then 💥 because it's the old commonjs version. --- packages/rollup/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/rollup/package.json b/packages/rollup/package.json index 4b5f1c302..e4f7ec073 100644 --- a/packages/rollup/package.json +++ b/packages/rollup/package.json @@ -40,7 +40,8 @@ "dependencies": { "@mdx-js/mdx": "^2.0.0", "@rollup/pluginutils": "^4.0.0", - "source-map": "^0.7.0" + "source-map": "^0.7.0", + "vfile": "^5.0.0" }, "peerDependencies": { "rollup": ">=2"