https://github.com/muke1908/dynamic-import-repro
https://github.com/muke1908/dynamic-import-repro
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/muke1908/dynamic-import-repro
- Owner: muke1908
- Created: 2023-05-26T15:19:38.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-29T18:17:12.000Z (almost 3 years ago)
- Last Synced: 2025-02-01T19:45:00.714Z (about 1 year ago)
- Language: JavaScript
- Size: 44.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.