Browse Source

Set `main` attribute in headless package.json back to the dist file

Otherwise the prod webpack build is built in a different way so that:

1. runtime object assignments (e.g. `Object.assign(api, foo)`) aren't
reflected on imported objects (causing undefined attribute errors).
2. circular imports cause crashes, making the build unusable.

Unfortunately fixing these issues on a more fundamental level will
require much more work.
JC Brand 1 năm trước cách đây
mục cha
commit
292ce34a63
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      src/headless/package.json

+ 1 - 2
src/headless/package.json

@@ -8,8 +8,7 @@
   ],
   "homepage": "https://conversejs.org",
   "license": "MPL-2.0",
-  "main": "index.js",
-  "browser": "dist/converse-headless.js",
+  "main": "dist/converse-headless.js",
   "module": "index.js",
   "keywords": [
     "converse.js",