Using webpack, if I want to code-split an entire module, I can change
import Module from 'module'
at the top of my file to
import('module').then(Module => {...
when I need to use the module (docs). Is it possible to do this but with just a single named export? That is, how could I code-split the following:
import {namedExport} from 'module'
dynamic
function wrapped around import in first example? – Methanol