Skip to content

Instantly share code, notes, and snippets.

@pushkar100
Created October 6, 2020 06:22
Show Gist options
  • Select an option

  • Save pushkar100/8c5a55c21174195e9c66cfb59a326376 to your computer and use it in GitHub Desktop.

Select an option

Save pushkar100/8c5a55c21174195e9c66cfb59a326376 to your computer and use it in GitHub Desktop.
webpackExports usage example
// 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