Skip to content

Commit 07d4643

Browse files
authored
Merge pull request #17276 from Mugen87/dev34
BoxGeometry: Introduce ES6 classes and ES6-ES5 conversion for builds.
2 parents f3205d7 + 674b636 commit 07d4643

File tree

4 files changed

+318
-142
lines changed

4 files changed

+318
-142
lines changed

package-lock.json

Lines changed: 165 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@
7878
"http-server": "^0.11.1",
7979
"qunit": "^2.9.2",
8080
"rollup": "^1.19.4",
81-
"typescript": "^3.5.3"
81+
"typescript": "^3.5.3",
82+
"rollup-plugin-buble": "^0.19.8"
8283
},
8384
"jspm": {
8485
"files": [

rollup.config.js

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import buble from 'rollup-plugin-buble';
2+
13
function glconstants() {
24

35
var constants = {
@@ -193,23 +195,35 @@ function glsl() {
193195

194196
}
195197

196-
export default {
197-
input: 'src/Three.js',
198-
plugins: [
199-
glconstants(),
200-
glsl()
201-
],
202-
output: [
203-
{
204-
format: 'umd',
205-
name: 'THREE',
206-
file: 'build/three.js',
207-
indent: '\t'
208-
},
209-
{
210-
format: 'esm',
211-
file: 'build/three.module.js',
212-
indent: '\t'
213-
}
214-
]
215-
};
198+
export default [
199+
{
200+
input: 'src/Three.js',
201+
plugins: [
202+
glconstants(),
203+
glsl(),
204+
buble()
205+
],
206+
output: [
207+
{
208+
format: 'umd',
209+
name: 'THREE',
210+
file: 'build/three.js',
211+
indent: '\t',
212+
}
213+
]
214+
},
215+
{
216+
input: 'src/Three.js',
217+
plugins: [
218+
glconstants(),
219+
glsl()
220+
],
221+
output: [
222+
{
223+
format: 'esm',
224+
file: 'build/three.module.js',
225+
indent: '\t'
226+
}
227+
]
228+
}
229+
];

0 commit comments

Comments
 (0)