diff --git a/mediapipe/tasks/web/package.json b/mediapipe/tasks/web/package.json index 4a42018f0..025ab46bd 100644 --- a/mediapipe/tasks/web/package.json +++ b/mediapipe/tasks/web/package.json @@ -5,6 +5,11 @@ "main": "__NAME___bundle.cjs", "browser": "__NAME___bundle.mjs", "module": "__NAME___bundle.mjs", + "exports": { + "import": "./__NAME___bundle.mjs", + "require": "./__NAME___bundle.cjs", + "default": "./__NAME___bundle.mjs" + }, "author": "mediapipe@google.com", "license": "Apache-2.0", "type": "module",