Skip to content

Commit

Permalink
fix(Package): Remove browser property of package.json
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nokome committed Nov 10, 2019
1 parent 934c6da commit fe7a7d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.test.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Logga browser test</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="./dist/browser.js"></script>
<script src="./dist/browser/index.js"></script>
</head>
<body>
<style>
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"description": "Unified logging across related Javascript modules",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"browser": "dist/browser/index.js",
"browserslist": [
"> 0.2%",
"not dead"
Expand All @@ -18,7 +17,7 @@
"test": "jest --runInBand",
"test:cover": "jest --runInBand --collectCoverage",
"test:browser": "jest --env=jsdom",
"build": "tsc && parcel build index.ts -d dist/browser --public-url . --global logga"
"build": "tsc && parcel build index.ts --out-dir dist/browser --global logga"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit fe7a7d8

Please # to comment.