-
-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(minifier): avoid repeated
Atom
creation in `InjectGlobalVariab…
…les` (#4802) Re-use `Atom`s in `InjectGlobalVariables` minifier plugin. Instead of allocating a new `Atom` on every replacement, create `Atom` lazily when making first replacement, and cache it. As discussed in: #4759 (comment)
- Loading branch information
1 parent
62f759c
commit 35f2742
Showing
1 changed file
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters