]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
chore: remove redundant "pkg.browser" field
authorNicolas Coden <nicolas@ncoden.fr>
Sun, 2 Sep 2018 19:42:27 +0000 (21:42 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Sun, 2 Sep 2018 19:42:27 +0000 (21:42 +0200)
According to the specification for `pkg.browser`, there is no reason for us to use this field as the package itself it only for browsers (or any environement with a DOM). Without the field, ESM-compliant transpilers/bundlers will pick `module`, and the others will pick `main`.

https://github.com/defunctzombie/package-browser-field-spec

package.json

index 8d1a2ad102831f8aa1675a3fa66b7cf133868f92..8e4c0140dfb9355136eb400749e319e7a4a348c7 100644 (file)
@@ -2,7 +2,6 @@
   "name": "foundation-sites",
   "version": "6.4.3",
   "main": "dist/js/foundation.js",
-  "browser": "dist/js/foundation.js",
   "module": "js/foundation.js",
   "jsnext:main": "js/foundation.js",
   "typings": "dist/js/foundation.d.ts",