Generate single module with webpack, with optional-to-load parts of the same module
问题 I've created a library of date/time functions. (Why? I need some special features other libraries like Moment.js don't have.) There are some big chunks of data for handling historical Daylight Saving Time info that most users won't need, so I'd like them to be something that can be loaded optionally. This works fine when code is being loaded directly from npm libraries, but I'm trying to make the same code work when loaded as scripts directly into a web browser from unpkg.com. I'm finding