Skip to content

Commit

Permalink
Merge pull request #10711 from CesiumGS/export-non-js
Browse files Browse the repository at this point in the history
Allow import of non-js files via `exports` in `package.json`
  • Loading branch information
sanjeetsuhag authored Aug 31, 2022
2 parents 878374c + 82f31d7 commit 4493e84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

- `Model` can now classify other assets with a given `classificationType`. [#10623](https://github.com/CesiumGS/cesium/pull/10623)
- `Model` now supports back face culling for point clouds. [#10703](https://github.com/CesiumGS/cesium/pull/10703)
- Export asset files such as CSS in `package.json`, allowing bundlers to import without additional configuration. [#9212](https://github.com/CesiumGS/cesium/pull/9212)
- The `sideEffects` field in `package.json` is now defined, allowing more conservative bundlers like Webpack to enable tree shaking by default.

##### Fixes :wrench:
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
"types": "./Source/Cesium.d.ts",
"exports": {
"./package.json": "./package.json",
"./Source/*": "./Source/*",
"./Source/*.js": null,
"./Build/*": "./Build/*",
"./Build/*.js": null,
".": {
"require": "./index.cjs",
"import": "./Source/Cesium.js"
Expand Down

0 comments on commit 4493e84

Please sign in to comment.