2
0
Эх сурвалжийг харах

Build: Transform private class properties in all bundles.

Mr.doob 3 жил өмнө
parent
commit
2aceae6fdf

+ 3 - 0
utils/build/rollup.config.js

@@ -278,6 +278,7 @@ ${ code }`;
 }
 
 // Transform #properties to _properties until they're supported in bundlers
+// https://github.com/mrdoob/three.js/issues/22437
 function privateProperties() {
 
 	return {
@@ -328,6 +329,7 @@ export default [
 		plugins: [
 			addons(),
 			glsl(),
+			privateProperties(),
 			babel( {
 				babelHelpers: 'bundled',
 				compact: false,
@@ -352,6 +354,7 @@ export default [
 			addons(),
 			glconstants(),
 			glsl(),
+			privateProperties(),
 			babel( {
 				babelHelpers: 'bundled',
 				babelrc: false,