From 3d1e92118635cd9e47419cd33743b1f73c6887e4 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Wed, 3 Jul 2024 10:42:58 -0400 Subject: [PATCH] feat: add explicit exports (#1301) --- package.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/package.json b/package.json index 90f9beb0..1f8b93bc 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,17 @@ "src", "build" ], + "exports": { + ".": { + "import": { + "types": "./build/vega-embed.module.d.ts", + "default": "./build/vega-embed.module.js" + }, + "require": { + "default": "./build/vega-embed.js" + } + } + }, "devDependencies": { "@babel/core": "^7.24.4", "@babel/plugin-transform-runtime": "^7.24.3",