Skip to content

Commit

Permalink
fix: remove redundant "browser" and defunct "jsnext:main" fields from…
Browse files Browse the repository at this point in the history
… package.json files

This allows Webpack's default resolution priority to choose the .esm.js
file rather than .umd.js
  • Loading branch information
lojjic committed Oct 1, 2020
1 parent da0f995 commit 0abec40
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 22 deletions.
2 changes: 0 additions & 2 deletions packages/troika-2d/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
},
"license": "MIT",
"main": "dist/troika-2d.umd.js",
"browser": "dist/troika-2d.umd.js",
"jsnext:main": "dist/troika-2d.esm.js",
"module": "dist/troika-2d.esm.js",
"module:src": "src/index.js",
"dependencies": {
Expand Down
2 changes: 0 additions & 2 deletions packages/troika-3d-text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
},
"license": "MIT",
"main": "dist/troika-3d-text.umd.js",
"browser": "dist/troika-3d-text.umd.js",
"jsnext:main": "dist/troika-3d-text.esm.js",
"module": "dist/troika-3d-text.esm.js",
"module:src": "src/index.js",
"dependencies": {
Expand Down
2 changes: 0 additions & 2 deletions packages/troika-3d-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
},
"license": "MIT",
"main": "dist/troika-3d-ui.umd.js",
"browser": "dist/troika-3d-ui.umd.js",
"jsnext:main": "dist/troika-3d-ui.esm.js",
"module": "dist/troika-3d-ui.esm.js",
"module:src": "src/index.js",
"dependencies": {
Expand Down
2 changes: 0 additions & 2 deletions packages/troika-3d/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
},
"license": "MIT",
"main": "dist/troika-3d.umd.js",
"browser": "dist/troika-3d.umd.js",
"jsnext:main": "dist/troika-3d.esm.js",
"module": "dist/troika-3d.esm.js",
"module:src": "src/index.js",
"dependencies": {
Expand Down
2 changes: 0 additions & 2 deletions packages/troika-animation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
},
"license": "MIT",
"main": "dist/troika-animation.umd.js",
"browser": "dist/troika-animation.umd.js",
"jsnext:main": "dist/troika-animation.esm.js",
"module": "dist/troika-animation.esm.js",
"module:src": "src/index.js"
}
2 changes: 0 additions & 2 deletions packages/troika-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
},
"license": "MIT",
"main": "dist/troika-core.umd.js",
"browser": "dist/troika-core.umd.js",
"jsnext:main": "dist/troika-core.esm.js",
"module": "dist/troika-core.esm.js",
"module:src": "src/index.js",
"dependencies": {
Expand Down
2 changes: 0 additions & 2 deletions packages/troika-flex-layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
},
"license": "MIT",
"main": "dist/troika-flex-layout.umd.js",
"browser": "dist/troika-flex-layout.umd.js",
"jsnext:main": "dist/troika-flex-layout.esm.js",
"module": "dist/troika-flex-layout.esm.js",
"module:src": "src/index.js",
"dependencies": {
Expand Down
2 changes: 0 additions & 2 deletions packages/troika-three-text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
},
"license": "MIT",
"main": "dist/troika-three-text.umd.js",
"browser": "dist/troika-three-text.umd.js",
"jsnext:main": "dist/troika-three-text.esm.js",
"module": "dist/troika-three-text.esm.js",
"module:src": "src/index.js",
"dependencies": {
Expand Down
2 changes: 0 additions & 2 deletions packages/troika-three-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
},
"license": "MIT",
"main": "dist/troika-three-utils.umd.js",
"browser": "dist/troika-three-utils.umd.js",
"jsnext:main": "dist/troika-three-utils.esm.js",
"module": "dist/troika-three-utils.esm.js",
"module:src": "src/index.js",
"peerDependencies": {
Expand Down
2 changes: 0 additions & 2 deletions packages/troika-worker-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
},
"license": "MIT",
"main": "dist/troika-worker-utils.umd.js",
"browser": "dist/troika-worker-utils.umd.js",
"jsnext:main": "dist/troika-worker-utils.esm.js",
"module": "dist/troika-worker-utils.esm.js",
"module:src": "src/index.js"
}
2 changes: 0 additions & 2 deletions packages/troika-xr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
},
"license": "MIT",
"main": "dist/troika-xr.umd.js",
"browser": "dist/troika-xr.umd.js",
"jsnext:main": "dist/troika-xr.esm.js",
"module": "dist/troika-xr.esm.js",
"module:src": "src/index.js",
"dependencies": {
Expand Down

0 comments on commit 0abec40

Please sign in to comment.