-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing documentation on UMD format webpack uses to export libraries #5826
Comments
It looks like you just deleted/ignored our lovely crafted issue template. It was there for good reasons. Please help us solving your issue by answering the questions asked in this template. I'm closing this. Please open a new issue with filled issue template. Also make sure your issue is not a question. Questions should be posted on Stack Overflow. |
@sokra , what's the point of asking a question on SO if there's no one from the core team there? Webpack's documentation is so lacking and on top of that it's impossible to get an answer from the core team here. It would probably take you the same amount of time to put a short answer to my question that it took you to write that I should ask a question on SO. |
Did you try to google |
@sokra , if you're asking if I know what is UMD, the answer is yes. Moreover, I even looked through the common patterns here but couldn't identify what environment the line
expects. As I understand CommonJS & Node are handled by this line in webpack's UMD implementation:
|
There are two different CommonJs specs. CommonJS strict has only |
@sokra , thanks for the answer. It's almost clear now. Just a few points to clarify: this commonjs spec states that:
So is my understanding correct that it's the And also here:
you can't do it like this:
because that is illegal according to the spec? Or is it simply how in |
Webpack generates the following UMD definition:
My question is what is this standard or environment for?
It's like
CommonJS
but withoutmodule
.The text was updated successfully, but these errors were encountered: