From c1715dc6850adb4a855ecbed31c8c33fa2ff5247 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Fri, 26 Aug 2022 17:05:41 -0600 Subject: [PATCH] Add a browser entry point in package.json By default, if we want to use ipyleaflet by itself in the browser (like voila, etc.), we want to serve up the AMD module. This points the default browser import to the AMD module. jsdelivr recognizes this, and we'll see if unpkg recognizes it too. --- js/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/js/package.json b/js/package.json index 406b8a1f7..87f31040a 100644 --- a/js/package.json +++ b/js/package.json @@ -15,6 +15,7 @@ "license": "MIT", "author": "Project Jupyter", "main": "src/index.js", + "browser": "dist/index.js", "scripts": { "build": "webpack && jupyter labextension build .", "clean": "rimraf dist/ && rimraf ../ipyleaflet/labextension/ && rimraf ../ipyleaflet/nbextension",