Dependency on @babel/runtime in esm versions #214
Unanswered
vitalymind
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi, I am trying to use three-nebula as es module. I assume that after installing npm package "..\node_modules\three-nebula\build\esm" folder should contain pre-built and ready to use library.
However I found following imports that likely should not be there, namely:
7 times
import _defineProperty from "@babel/runtime/helpers/defineProperty";
in files:\three-nebula\build\esm\core\fromJSONAsync.js
\three-nebula\build\esm\initializer\BodySprite.js
\three-nebula\build\esm\initializer\constants.js
\three-nebula\build\esm\initializer\Texture.js
\three-nebula\build\esm\renderer\GPURenderer\Desktop\index.js
\three-nebula\build\esm\renderer\GPURenderer\Mobile\index.js
\three-nebula\build\esm\utils\index.js
1 time
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
in file\three-nebula\build\esm\initializer\Position.js
From what I understand built three-nebula should not depend on babel, babel used only for building three-nebula it self.
Just to make it clear, minified built version "three-nebula.js" works as expected, no dependency on babel
Can it be fixed?
Beta Was this translation helpful? Give feedback.
All reactions