Skip to content

Commit

Permalink
Build: Transform private class properties in all bundles.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Aug 27, 2021
1 parent f69814c commit 2aceae6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -328,6 +329,7 @@ export default [
plugins: [
addons(),
glsl(),
privateProperties(),
babel( {
babelHelpers: 'bundled',
compact: false,
Expand All @@ -352,6 +354,7 @@ export default [
addons(),
glconstants(),
glsl(),
privateProperties(),
babel( {
babelHelpers: 'bundled',
babelrc: false,
Expand Down

0 comments on commit 2aceae6

Please sign in to comment.