From: Daniel Schuba Date: Wed, 26 Jul 2017 11:44:18 +0000 (+0200) Subject: JSPM can't load npm.js as main X-Git-Tag: v6.4.2-rc2~1^2~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10465%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git JSPM can't load npm.js as main Loading npm.js as main in browsers leads to an error. So we need to define a different main for JSPM than for NPM. --- diff --git a/package.json b/package.json index c8330eda9..d2add50b7 100644 --- a/package.json +++ b/package.json @@ -123,6 +123,7 @@ "exports": false }, "jspm": { + "main": "dist/js/foundation.js", "format": "global", "shim": { "dist/js/foundation": {