-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(target-lib): fix dynamic public path in a dynamic chunk in Firefox (
#5247) * fix(target-lib): fix dynamic public path in a dynmaic chunk in Firefox * fix: fix typo * feat: use external dependency `@soda/get-current-script` * fix: const -> var, as the `setPublicPath` file is not transpiled
- Loading branch information
Showing
3 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
15 changes: 11 additions & 4 deletions
15
packages/@vue/cli-service/lib/commands/build/setPublicPath.js
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
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
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
这样写会导致IE11下堆栈溢出,因为@soda/get-current-script 里面会调用 document.currentScript,死循环了