Skip to content

Commit f7b8588

Browse files
authored
Export three.js Stats module for re-use downstream (#196)
Also fix a warning in the rebuild Dockerfile.
1 parent e5be322 commit f7b8588

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

dist/main.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rebuild/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This is used by rebuild.sh to snapshot the node environment.
2-
FROM node:20.11.0 as build
2+
FROM node:20.11.0 AS build
33
WORKDIR /usr/src/app
44
COPY tmp/package.json ./
55
COPY tmp/yarn.lock ./

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { XRControllerModelFactory } from 'three/examples/jsm/webxr/XRControllerM
1717
import {Line2} from 'three/examples/jsm/lines/Line2.js';
1818
import {LineMaterial} from 'three/examples/jsm/lines/LineMaterial.js';
1919
import {LineGeometry} from 'three/examples/jsm/lines/LineGeometry.js';
20+
import Stats from 'three/examples/jsm/libs/stats.module.js';
2021
require('ccapture.js');
2122

2223
// These are bundled as data:// URIs via our webpack.config.js.
@@ -2111,4 +2112,4 @@ style.sheet.insertRule(`
21112112
padding: 0 0 0 0px;
21122113
}`);
21132114

2114-
export { Viewer, THREE, msgpack, Line2, LineMaterial, LineGeometry };
2115+
export { Viewer, THREE, msgpack, Line2, LineMaterial, LineGeometry, Stats };

0 commit comments

Comments
 (0)