Skip to content

Commit fe7a7d8

Browse files
committed
fix(Package): Remove browser property of package.json
We were mis-using the "browser" field - it was pointing to the browser _distribution_, rather than a browser specific version of the module . See https://github.com/defunctzombie/package-browser-field-spec
1 parent 934c6da commit fe7a7d8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

index.test.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<title>Logga browser test</title>
77
<meta name="viewport" content="width=device-width, initial-scale=1" />
8-
<script src="./dist/browser.js"></script>
8+
<script src="./dist/browser/index.js"></script>
99
</head>
1010
<body>
1111
<style>

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "Unified logging across related Javascript modules",
55
"main": "dist/lib/index.js",
66
"types": "dist/lib/index.d.ts",
7-
"browser": "dist/browser/index.js",
87
"browserslist": [
98
"> 0.2%",
109
"not dead"
@@ -18,7 +17,7 @@
1817
"test": "jest --runInBand",
1918
"test:cover": "jest --runInBand --collectCoverage",
2019
"test:browser": "jest --env=jsdom",
21-
"build": "tsc && parcel build index.ts -d dist/browser --public-url . --global logga"
20+
"build": "tsc && parcel build index.ts --out-dir dist/browser --global logga"
2221
},
2322
"repository": {
2423
"type": "git",

0 commit comments

Comments
 (0)