We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What is the current behavior? Webpack generates output in production mode without minimizers
/* harmony default export */ var src_bar = (Math.abs(0));
for the code below
// ./src/bar.ts export default /*@__PURE__*/Math.abs(0);
However, if I write code like this
const value = /*@__PURE__*/Math.abs(0); export default value;
the comment is reserved
var value = /*@__PURE__*/Math.abs(0); /* harmony default export */ var src_bar = (value);
This behavior brings me some troubles. I have to preprocess my code to split all the inline default exports.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior? Perhaps webpack should reserve the comments as below
/* harmony default export */ var src_bar = /*@__PURE__*/(Math.abs(0));
I'm not sure though, since the comments may be considered to belong to the export statement.
Other relevant information: webpack version: 4.20.1 Related issue: #8039
The text was updated successfully, but these errors were encountered:
aab3afb
Merge pull request #8086 from webpack/bugfix/comments-concat-export-d…
79ea087
…efault fixes #8085
No branches or pull requests
Bug report
What is the current behavior?
Webpack generates output in production mode without minimizers
for the code below
However, if I write code like this
the comment is reserved
This behavior brings me some troubles. I have to preprocess my code to split all the inline default exports.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Perhaps webpack should reserve the comments as below
I'm not sure though, since the comments may be considered to belong to the export statement.
Other relevant information:
webpack version: 4.20.1
Related issue: #8039
The text was updated successfully, but these errors were encountered: