Skip to content

Commit 0d15220

Browse files
committed
Rollup config
1 parent 65b86bb commit 0d15220

8 files changed

+1828
-14
lines changed

build/geo-three.cjs

+1,805
Large diffs are not rendered by default.

build/geo-three.js

-1
Original file line numberDiff line numberDiff line change
@@ -1807,4 +1807,3 @@
18071807
Object.defineProperty(exports, '__esModule', { value: true });
18081808

18091809
}));
1810-
//# sourceMappingURL=geo-three.js.map

build/geo-three.js.map

-1
This file was deleted.

build/geo-three.module.js

-1
Original file line numberDiff line numberDiff line change
@@ -1775,4 +1775,3 @@ class CancelablePromise {
17751775
}
17761776

17771777
export { BingMapsProvider, CancelablePromise, DebugProvider, GoogleMapsProvider, HeightDebugProvider, HereMapsProvider, LODFrustum, LODRadial, LODRaycast, MapBoxProvider, MapHeightNode, MapHeightNodeShader, MapNode, MapNodeGeometry, MapNodeHeightGeometry, MapPlaneNode, MapProvider, MapSphereNode, MapSphereNodeGeometry, MapTilerProvider, MapView, OpenMapTilesProvider, OpenStreetMapsProvider, UnitsUtils, XHRUtils };
1778-
//# sourceMappingURL=geo-three.module.js.map

build/geo-three.module.js.map

-1
This file was deleted.

package.json

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
{
22
"name": "geo-three",
3-
"version": "0.0.18",
3+
"version": "0.1.0",
4+
"type": "module",
45
"description": "geo-three is library for tile based geographic map layers in with three.js supporting selective loading/unloading of real-time generated 3D tiles",
56
"main": "build/geo-three.js",
6-
"module": "build/geo-three.module.js",
7+
"module": "build/geo-three.module.js",
8+
"exports": {
9+
".": {
10+
"import": "./build/geo-three.module.js",
11+
"require": "./build/geo-three.cjs"
12+
},
13+
"./source/*": "./source/*"
14+
},
715
"repository": {
816
"type": "git",
917
"url": "https://github.com/tentone/geothree.git"
@@ -16,6 +24,7 @@
1624
"lint": "eslint --ext .ts .",
1725
"lint-fix": "eslint --ext .ts --fix ."
1826
},
27+
"sideEffects": false,
1928
"keywords": [
2029
"maps",
2130
"tiles",
@@ -36,7 +45,7 @@
3645
"@rollup/plugin-typescript": "~8.3.1",
3746
"@types/offscreencanvas": "~2019.6.4",
3847
"@types/node": "~16.9.0",
39-
"@types/three": "^0.139.0",
48+
"@types/three": "^0.140.0",
4049
"@typescript-eslint/eslint-plugin": "~5.12.1",
4150
"@typescript-eslint/parser": "~5.17.0",
4251
"eslint": "~8.12.0",
@@ -46,7 +55,7 @@
4655
"rollup": "~2.70.0",
4756
"rollup-plugin-livereload": "~2.0.5",
4857
"rollup-plugin-serve": "~1.1.0",
49-
"three": "^0.139.0",
58+
"three": "^0.140.2",
5059
"typedoc": "~0.22.13",
5160
"typescript": "~4.5.5"
5261
},

rollup.config.js

+9-5
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,27 @@ export default {
77
plugins: [
88
typescript({ tsconfig: './tsconfig.json' }),
99
strip({
10-
functions: ['assert.*', 'debug', 'alert']
10+
functions: ['assert.*', 'debug', 'alert', 'console.*']
1111
})
1212
],
1313
output: [
1414
{
1515
format: 'es',
1616
file: 'build/geo-three.module.js',
17-
indent: '\t',
18-
sourcemap: true
17+
indent: '\t'
18+
},
19+
{
20+
format: 'cjs',
21+
name: 'Geo',
22+
file: 'build/geo-three.cjs',
23+
indent: '\t'
1924
},
2025
{
2126
globals: {three: 'THREE'},
2227
format: 'umd',
2328
name: 'Geo',
2429
file: 'build/geo-three.js',
25-
indent: '\t',
26-
sourcemap: true
30+
indent: '\t'
2731
}
2832
]
2933
};

rollup.dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
external: ['three'],
77
input: 'source/Main.ts',
88
plugins: [
9-
typescript(),
9+
typescript({ tsconfig: './tsconfig.json' }),
1010
serve({
1111
open: true,
1212
contentBase: '.',

0 commit comments

Comments
 (0)