Created
October 6, 2020 06:22
-
-
Save pushkar100/8c5a55c21174195e9c66cfb59a326376 to your computer and use it in GitHub Desktop.
webpackExports usage example
This file contains hidden or 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
| // Use an array to fetch multiple names exports: | |
| import(/* webpackExports: ["named1", "named2"] */ "module") | |
| // Use the "default" keyword to fetch the default export as well: | |
| import(/* webpackExports: ["named1", "named2", "default"] */ "module") | |
| // Array is not necessary to fetch a single export: | |
| import(/* webpackExports: "named1" */ "module") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment