Fix error when bundle prettier with webpack (#12511)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-03-24 11:20:55 +08:00
1 parent 9e7f7b9295
commit 6664253b9e
4 files changed
+34 -16

No files matched your search

+5 -2
View File
@@ -1,3 +1,6 @@
#### Make artifact friendly for `webpack` (#12485 by @fisker)
#### Make artifact friendly for webpack (#12485, #12511 by @fisker)
Previously, when bundling our UMD files `standalone.js`, `parser-typescript.js`, `webpack` warn about "Critical dependency: the request of a dependency is an expression", now this is fixed.
Fixes two problems when bundling our UMD files with webpack:
- A error `` "`....__exportStar` is not a function" `` throws when running the bundles.
- Some files cause warning about `"Critical dependency: the request of a dependency is an expression"`.