File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Loads each of the chunks produced by the first Rollup pass.
2
+ // The custom AMD define() in intro.js will combined the shared
3
+ // and worker chunks into a worker bundle that can be instantiated
4
+ // via blob URL.
5
+
6
+ import './shared' ; // shared code between main and worker threads
7
+ import './scene_worker' ; // worker code, gets turned into a blob URL used to instantiate workers
8
+ import './index' ; // main thread code, gets exported as main library below
9
+
10
+ // This allows the rollup ESM build to work within a <script type="module"> tag
11
+ // Script modules can't expose exports
12
+ try {
13
+ Tangram . debug . ESM = _ESM ; // mark build as ES module
14
+ Tangram . debug . SHA = _SHA ;
15
+ if ( _ESM === true && typeof window === 'object' ) {
16
+ window . Tangram = Tangram ;
17
+ }
18
+ } catch ( e ) { }
19
+
20
+ export default Tangram ;
You can’t perform that action at this time.
0 commit comments