An open API service indexing awesome lists of open source software.

https://github.com/muke1908/dynamic-import-repro


https://github.com/muke1908/dynamic-import-repro

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# dynamic-import-repro

### Setup instruction:
1 - Run `npm run setup`
2 - Run `npm serve`

----

### Issue:
The app (`./app`) is an example client app.
module (`./module`) is an example npm module.

module is using webpack dynamic import and creates two file in dist - main.js and ts_dynamic_ts.js

The app (`./app`) is bundling dependency using webpack. However it's not copying chunk properly. It only copies the main.js from './`module/dist/main.js`. So it fails to load ts_dynamic_ts.js when it's required.

Expected behavior: All chunks should be copied to client app.