[harmony import] Failed to add property to namespace when the module value is a function #19190
Unanswered
HomyeeKing
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Sorry without reproducible example we can't help, especially without configuration(s) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
What is the current behavior?
In my case, it was processed like:
I notice there're two webpack runtime helper code
__webpack_require__.n
and__webpack_require__.t
:the helper function source code
because
stream_browserify
is a function here, it can't match the condition(typeof value === 'object'
) in__webpack_require__.t
, so thestream_browserify_namespaceObject
only has the default property.Is this a bad case in
__webpack_require__.t
? And what's the difference betweent
andn
, it seems both of them handle namespace importIf the current behavior is a bug, please provide the steps to reproduce.
I try to reproduce it in a simply webpack project, but it use
.n
, so it works fine there, I haven't figured out how to create the same outputWhat is the expected behavior?
get full property of namespace object
Other relevant information:
webpack version: 5.8.22
Node.js version: 20.16.0
Operating System: Mac OS
Additional tools:
Beta Was this translation helpful? Give feedback.
All reactions