Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) Setup esm-form-entry to use webpack module federation #1168

Merged
merged 7 commits into from
May 22, 2023

Conversation

denniskigen
Copy link
Member

@denniskigen denniskigen commented May 22, 2023

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

This PR sets up esm-form-entry to use webpack module federation (WMF). Presently, all the other frontend modules get loaded using webpack module federation, except for this esm-form-entry, which gets loaded using the legacy mechanism (System.import). esm-form-entry runs on Angular v12, which supports WMF. What needed adjustment is our webpack configuration.

The approach I've used here leverages ngx-build-plus which gets provided by @angular-architects/module-federation. The single-spa docs recommend using @angular/builders to customize your build configuration. Still, I've not had much success trying to tweak it for this purpose. Setting things up with @angular-architects/module-federation was relatively straightforward on the other hand.

FWIW, the module federation organization on GitHub has many examples that use ngx-build-plus, so I think it's a sound choice.

I'm happy to get feedback on whether we should stick to using Angular builders and suggestions for what kind of tweaks we might need to make to the webpack configuration to support that.

Also FWIW, I've not found plenty of mentions of webpack module federation in the Angular builders repo, save for maybe this one issue.

NB: This PR requires openmrs/openmrs-esm-core#677 to work.

@github-actions
Copy link
Contributor

github-actions bot commented May 22, 2023

Size Change: -451 kB (-6%) ✅

Total Size: 6.73 MB

Filename Size Change
packages/esm-form-entry-app/dist/203.b1bb9ad3f6ac61074fdd.js 0 B -11.9 kB (removed) 🏆
packages/esm-form-entry-app/dist/478.259dd79bd18a21000411.js 0 B -27.6 kB (removed) 🏆
packages/esm-form-entry-app/dist/openmrs-esm-form-entry-app.js 3.29 kB -411 kB (-99%) 🏆
ℹ️ View Unchanged
Filename Size Change
packages/esm-form-engine-app/dist/122.js 842 B 0 B
packages/esm-form-engine-app/dist/260.js 97.4 kB 0 B
packages/esm-form-engine-app/dist/316.js 9.97 kB 0 B
packages/esm-form-engine-app/dist/395.js 203 kB 0 B
packages/esm-form-engine-app/dist/43.js 2.31 kB 0 B
packages/esm-form-engine-app/dist/469.js 6.66 kB 0 B
packages/esm-form-engine-app/dist/47.js 2.46 kB 0 B
packages/esm-form-engine-app/dist/574.js 255 B 0 B
packages/esm-form-engine-app/dist/591.js 16.8 kB 0 B
packages/esm-form-engine-app/dist/610.js 6.72 kB 0 B
packages/esm-form-engine-app/dist/784.js 2.63 kB 0 B
packages/esm-form-engine-app/dist/797.js 101 kB 0 B
packages/esm-form-engine-app/dist/817.js 110 kB 0 B
packages/esm-form-engine-app/dist/833.js 641 B 0 B
packages/esm-form-engine-app/dist/879.js 2.88 kB 0 B
packages/esm-form-engine-app/dist/main.js 3.47 kB 0 B
packages/esm-form-engine-app/dist/openmrs-esm-form-engine-app.js 3.5 kB 0 B
packages/esm-form-entry-app/dist/330.1f40c8cbe2eb7b7498ff.js 38.7 kB 0 B
packages/esm-form-entry-app/dist/382.8d5d13b05f488f74291d.js 5.69 kB 0 B
packages/esm-form-entry-app/dist/574.2c5b56f88997e5ad583b.js 125 B 0 B
packages/esm-form-entry-app/dist/574.a78c7d55ae3ded7efd21.js 0 B -123 B (removed) 🏆
packages/esm-form-entry-app/dist/802.77c63f091c0808a163bd.js 13 kB 0 B
packages/esm-form-entry-app/dist/807.7940b086abb64d0cf25a.js 125 B 0 B
packages/esm-form-entry-app/dist/807.ad2681da0d002e075ec7.js 0 B -123 B (removed) 🏆
packages/esm-form-entry-app/dist/815.8c52d20af2e7941e9798.js 101 B 0 B
packages/esm-form-entry-app/dist/891.9fe15614ddd92532e132.js 407 kB 0 B
packages/esm-form-entry-app/dist/main.80e61b62b067337625e8.js 409 kB 0 B
packages/esm-generic-patient-widgets-app/dist/15.js 143 kB 0 B
packages/esm-generic-patient-widgets-app/dist/195.js 9.15 kB 0 B
packages/esm-generic-patient-widgets-app/dist/442.js 11.2 kB 0 B
packages/esm-generic-patient-widgets-app/dist/499.js 3.12 kB 0 B
packages/esm-generic-patient-widgets-app/dist/574.js 96.3 kB 0 B
packages/esm-generic-patient-widgets-app/dist/588.js 6.67 kB 0 B
packages/esm-generic-patient-widgets-app/dist/591.js 16.9 kB 0 B
packages/esm-generic-patient-widgets-app/dist/641.js 5.96 kB 0 B
packages/esm-generic-patient-widgets-app/dist/757.js 214 B 0 B
packages/esm-generic-patient-widgets-app/dist/784.js 2.64 kB 0 B
packages/esm-generic-patient-widgets-app/dist/807.js 246 B 0 B
packages/esm-generic-patient-widgets-app/dist/828.js 195 B 0 B
packages/esm-generic-patient-widgets-app/dist/833.js 1.15 kB 0 B
packages/esm-generic-patient-widgets-app/dist/858.js 106 kB 0 B
packages/esm-generic-patient-widgets-app/dist/main.js 3.44 kB 0 B
packages/esm-generic-patient-widgets-app/dist/openmrs-esm-generic-patient-widgets-app.js 3.38 kB 0 B
packages/esm-patient-allergies-app/dist/195.js 9.15 kB 0 B
packages/esm-patient-allergies-app/dist/199.js 3.79 kB 0 B
packages/esm-patient-allergies-app/dist/35.js 8.16 kB 0 B
packages/esm-patient-allergies-app/dist/358.js 1.2 kB 0 B
packages/esm-patient-allergies-app/dist/394.js 2.7 kB 0 B
packages/esm-patient-allergies-app/dist/442.js 11.2 kB 0 B
packages/esm-patient-allergies-app/dist/463.js 7.11 kB 0 B
packages/esm-patient-allergies-app/dist/574.js 650 B 0 B
packages/esm-patient-allergies-app/dist/588.js 6.67 kB 0 B
packages/esm-patient-allergies-app/dist/591.js 16.9 kB 0 B
packages/esm-patient-allergies-app/dist/756.js 3.61 kB 0 B
packages/esm-patient-allergies-app/dist/757.js 816 B 0 B
packages/esm-patient-allergies-app/dist/784.js 2.64 kB 0 B
packages/esm-patient-allergies-app/dist/804.js 2.54 kB 0 B
packages/esm-patient-allergies-app/dist/807.js 1.07 kB 0 B
packages/esm-patient-allergies-app/dist/858.js 106 kB 0 B
packages/esm-patient-allergies-app/dist/879.js 2.89 kB 0 B
packages/esm-patient-allergies-app/dist/952.js 98.2 kB 0 B
packages/esm-patient-allergies-app/dist/main.js 3.42 kB 0 B
packages/esm-patient-allergies-app/dist/openmrs-esm-patient-allergies-app.js 3.41 kB 0 B
packages/esm-patient-appointments-app/dist/185.js 900 B 0 B
packages/esm-patient-appointments-app/dist/195.js 9.15 kB 0 B
packages/esm-patient-appointments-app/dist/220.js 227 B 0 B
packages/esm-patient-appointments-app/dist/314.js 3.35 kB 0 B
packages/esm-patient-appointments-app/dist/434.js 2.27 kB 0 B
packages/esm-patient-appointments-app/dist/442.js 11.2 kB 0 B
packages/esm-patient-appointments-app/dist/446.js 3.15 kB 0 B
packages/esm-patient-appointments-app/dist/556.js 7.2 kB 0 B
packages/esm-patient-appointments-app/dist/567.js 6.19 kB 0 B
packages/esm-patient-appointments-app/dist/574.js 734 B 0 B
packages/esm-patient-appointments-app/dist/588.js 6.67 kB 0 B
packages/esm-patient-appointments-app/dist/591.js 16.9 kB 0 B
packages/esm-patient-appointments-app/dist/694.js 227 B 0 B
packages/esm-patient-appointments-app/dist/757.js 623 B 0 B
packages/esm-patient-appointments-app/dist/760.js 127 kB 0 B
packages/esm-patient-appointments-app/dist/784.js 2.63 kB 0 B
packages/esm-patient-appointments-app/dist/807.js 738 B 0 B
packages/esm-patient-appointments-app/dist/858.js 106 kB 0 B
packages/esm-patient-appointments-app/dist/879.js 2.89 kB 0 B
packages/esm-patient-appointments-app/dist/907.js 4.68 kB 0 B
packages/esm-patient-appointments-app/dist/main.js 3.41 kB 0 B
packages/esm-patient-appointments-app/dist/openmrs-esm-patient-appointments-app.js 3.41 kB 0 B
packages/esm-patient-attachments-app/dist/130.js 8.02 kB 0 B
packages/esm-patient-attachments-app/dist/195.js 9.15 kB 0 B
packages/esm-patient-attachments-app/dist/419.js 7.4 kB 0 B
packages/esm-patient-attachments-app/dist/442.js 11.2 kB 0 B
packages/esm-patient-attachments-app/dist/50.js 595 B 0 B
packages/esm-patient-attachments-app/dist/504.js 2.86 kB 0 B
packages/esm-patient-attachments-app/dist/525.js 802 B 0 B
packages/esm-patient-attachments-app/dist/533.js 93.3 kB 0 B
packages/esm-patient-attachments-app/dist/574.js 720 B 0 B
packages/esm-patient-attachments-app/dist/588.js 6.67 kB 0 B
packages/esm-patient-attachments-app/dist/591.js 16.9 kB 0 B
packages/esm-patient-attachments-app/dist/620.js 7.02 kB 0 B
packages/esm-patient-attachments-app/dist/672.js 15.3 kB 0 B
packages/esm-patient-attachments-app/dist/682.js 1.1 kB 0 B
packages/esm-patient-attachments-app/dist/757.js 821 B 0 B
packages/esm-patient-attachments-app/dist/762.js 934 B 0 B
packages/esm-patient-attachments-app/dist/784.js 2.64 kB 0 B
packages/esm-patient-attachments-app/dist/807.js 1.03 kB 0 B
packages/esm-patient-attachments-app/dist/858.js 106 kB 0 B
packages/esm-patient-attachments-app/dist/95.js 5.86 kB 0 B
packages/esm-patient-attachments-app/dist/main.js 3.37 kB 0 B
packages/esm-patient-attachments-app/dist/openmrs-esm-patient-attachments-app.js 3.38 kB 0 B
packages/esm-patient-banner-app/dist/195.js 9.14 kB 0 B
packages/esm-patient-banner-app/dist/303.js 4.46 kB 0 B
packages/esm-patient-banner-app/dist/43.js 394 B 0 B
packages/esm-patient-banner-app/dist/442.js 11.2 kB 0 B
packages/esm-patient-banner-app/dist/490.js 1.01 kB 0 B
packages/esm-patient-banner-app/dist/574.js 378 B 0 B
packages/esm-patient-banner-app/dist/588.js 6.67 kB 0 B
packages/esm-patient-banner-app/dist/591.js 16.8 kB 0 B
packages/esm-patient-banner-app/dist/757.js 303 B 0 B
packages/esm-patient-banner-app/dist/764.js 913 B 0 B
packages/esm-patient-banner-app/dist/784.js 2.63 kB 0 B
packages/esm-patient-banner-app/dist/807.js 413 B 0 B
packages/esm-patient-banner-app/dist/808.js 17.8 kB 0 B
packages/esm-patient-banner-app/dist/832.js 6.39 kB 0 B
packages/esm-patient-banner-app/dist/833.js 942 B 0 B
packages/esm-patient-banner-app/dist/837.js 7.92 kB 0 B
packages/esm-patient-banner-app/dist/858.js 106 kB 0 B
packages/esm-patient-banner-app/dist/main.js 3.38 kB 0 B
packages/esm-patient-banner-app/dist/openmrs-esm-patient-banner-app.js 3.37 kB 0 B
packages/esm-patient-biometrics-app/dist/15.js 142 kB 0 B
packages/esm-patient-biometrics-app/dist/186.js 358 B 0 B
packages/esm-patient-biometrics-app/dist/195.js 9.14 kB 0 B
packages/esm-patient-biometrics-app/dist/208.js 91.6 kB 0 B
packages/esm-patient-biometrics-app/dist/40.js 359 B 0 B
packages/esm-patient-biometrics-app/dist/442.js 11.2 kB 0 B
packages/esm-patient-biometrics-app/dist/499.js 3.11 kB 0 B
packages/esm-patient-biometrics-app/dist/574.js 244 B 0 B
packages/esm-patient-biometrics-app/dist/588.js 6.67 kB 0 B
packages/esm-patient-biometrics-app/dist/591.js 16.9 kB 0 B
packages/esm-patient-biometrics-app/dist/757.js 135 B 0 B
packages/esm-patient-biometrics-app/dist/784.js 2.64 kB 0 B
packages/esm-patient-biometrics-app/dist/788.js 5.81 kB 0 B
packages/esm-patient-biometrics-app/dist/807.js 134 B 0 B
packages/esm-patient-biometrics-app/dist/821.js 1.3 kB 0 B
packages/esm-patient-biometrics-app/dist/840.js 2.56 kB 0 B
packages/esm-patient-biometrics-app/dist/858.js 106 kB 0 B
packages/esm-patient-biometrics-app/dist/879.js 2.89 kB 0 B
packages/esm-patient-biometrics-app/dist/93.js 5.99 kB 0 B
packages/esm-patient-biometrics-app/dist/main.js 3.45 kB 0 B
packages/esm-patient-biometrics-app/dist/openmrs-esm-patient-biometrics-app.js 3.41 kB 0 B
packages/esm-patient-chart-app/dist/129.js 4.82 kB 0 B
packages/esm-patient-chart-app/dist/1539.js 567 B 0 B
packages/esm-patient-chart-app/dist/1581.js 481 B 0 B
packages/esm-patient-chart-app/dist/20.js 183 kB 0 B
packages/esm-patient-chart-app/dist/2437.js 9.2 kB 0 B
packages/esm-patient-chart-app/dist/2534.js 2.79 kB 0 B
packages/esm-patient-chart-app/dist/2757.js 2.18 kB 0 B
packages/esm-patient-chart-app/dist/2784.js 2.63 kB 0 B
packages/esm-patient-chart-app/dist/2990.js 1.3 kB 0 B
packages/esm-patient-chart-app/dist/3030.js 3.6 kB 0 B
packages/esm-patient-chart-app/dist/3126.js 4.23 kB 0 B
packages/esm-patient-chart-app/dist/3195.js 9.13 kB 0 B
packages/esm-patient-chart-app/dist/3255.js 4.41 kB 0 B
packages/esm-patient-chart-app/dist/3375.js 450 B 0 B
packages/esm-patient-chart-app/dist/338.js 2.38 kB 0 B
packages/esm-patient-chart-app/dist/3419.js 1.14 kB 0 B
packages/esm-patient-chart-app/dist/3478.js 4.31 kB 0 B
packages/esm-patient-chart-app/dist/3574.js 1.84 kB 0 B
packages/esm-patient-chart-app/dist/3753.js 3.37 kB 0 B
packages/esm-patient-chart-app/dist/4158.js 4.27 kB 0 B
packages/esm-patient-chart-app/dist/427.js 473 B 0 B
packages/esm-patient-chart-app/dist/4302.js 11.9 kB 0 B
packages/esm-patient-chart-app/dist/4583.js 3.3 kB 0 B
packages/esm-patient-chart-app/dist/4713.js 4.68 kB 0 B
packages/esm-patient-chart-app/dist/4846.js 1.34 kB 0 B
packages/esm-patient-chart-app/dist/5043.js 510 B 0 B
packages/esm-patient-chart-app/dist/5047.js 2.47 kB 0 B
packages/esm-patient-chart-app/dist/5634.js 9.31 kB 0 B
packages/esm-patient-chart-app/dist/610.js 6.71 kB 0 B
packages/esm-patient-chart-app/dist/6190.js 3.23 kB 0 B
packages/esm-patient-chart-app/dist/6591.js 16.8 kB 0 B
packages/esm-patient-chart-app/dist/6858.js 106 kB 0 B
packages/esm-patient-chart-app/dist/6913.js 3.15 kB 0 B
packages/esm-patient-chart-app/dist/7631.js 2.26 kB 0 B
packages/esm-patient-chart-app/dist/7807.js 2.03 kB 0 B
packages/esm-patient-chart-app/dist/781.js 2.33 kB 0 B
packages/esm-patient-chart-app/dist/7861.js 4.4 kB 0 B
packages/esm-patient-chart-app/dist/7892.js 1.14 kB 0 B
packages/esm-patient-chart-app/dist/8760.js 9.5 kB 0 B
packages/esm-patient-chart-app/dist/8879.js 2.89 kB 0 B
packages/esm-patient-chart-app/dist/8926.js 497 B 0 B
packages/esm-patient-chart-app/dist/9063.js 13 kB 0 B
packages/esm-patient-chart-app/dist/9331.js 2.47 kB 0 B
packages/esm-patient-chart-app/dist/9692.js 3.37 kB 0 B
packages/esm-patient-chart-app/dist/9922.js 428 B 0 B
packages/esm-patient-chart-app/dist/main.js 6.37 kB 0 B
packages/esm-patient-chart-app/dist/openmrs-esm-patient-chart-app.js 3.52 kB 0 B
packages/esm-patient-conditions-app/dist/167.js 2.53 kB 0 B
packages/esm-patient-conditions-app/dist/195.js 9.14 kB 0 B
packages/esm-patient-conditions-app/dist/303.js 11.2 kB 0 B
packages/esm-patient-conditions-app/dist/320.js 7.25 kB 0 B
packages/esm-patient-conditions-app/dist/358.js 1.02 kB 0 B
packages/esm-patient-conditions-app/dist/442.js 132 kB 0 B
packages/esm-patient-conditions-app/dist/444.js 6.93 kB 0 B
packages/esm-patient-conditions-app/dist/469.js 6.66 kB 0 B
packages/esm-patient-conditions-app/dist/477.js 7.5 kB 0 B
packages/esm-patient-conditions-app/dist/574.js 567 B 0 B
packages/esm-patient-conditions-app/dist/591.js 16.9 kB 0 B
packages/esm-patient-conditions-app/dist/610.js 6.72 kB 0 B
packages/esm-patient-conditions-app/dist/657.js 3.6 kB 0 B
packages/esm-patient-conditions-app/dist/702.js 3.63 kB 0 B
packages/esm-patient-conditions-app/dist/757.js 527 B 0 B
packages/esm-patient-conditions-app/dist/784.js 2.64 kB 0 B
packages/esm-patient-conditions-app/dist/807.js 605 B 0 B
packages/esm-patient-conditions-app/dist/858.js 106 kB 0 B
packages/esm-patient-conditions-app/dist/879.js 2.89 kB 0 B
packages/esm-patient-conditions-app/dist/938.js 3.61 kB 0 B
packages/esm-patient-conditions-app/dist/main.js 3.45 kB 0 B
packages/esm-patient-conditions-app/dist/openmrs-esm-patient-conditions-app.js 3.42 kB 0 B
packages/esm-patient-forms-app/dist/172.js 4.83 kB 0 B
packages/esm-patient-forms-app/dist/195.js 9.13 kB 0 B
packages/esm-patient-forms-app/dist/255.js 4.4 kB 0 B
packages/esm-patient-forms-app/dist/313.js 1.29 kB 0 B
packages/esm-patient-forms-app/dist/34.js 85 kB 0 B
packages/esm-patient-forms-app/dist/346.js 1.96 kB 0 B
packages/esm-patient-forms-app/dist/383.js 1.9 kB 0 B
packages/esm-patient-forms-app/dist/403.js 2.11 kB 0 B
packages/esm-patient-forms-app/dist/440.js 9 kB 0 B
packages/esm-patient-forms-app/dist/442.js 11.2 kB 0 B
packages/esm-patient-forms-app/dist/47.js 2.47 kB 0 B
packages/esm-patient-forms-app/dist/525.js 501 B 0 B
packages/esm-patient-forms-app/dist/574.js 573 B 0 B
packages/esm-patient-forms-app/dist/588.js 6.67 kB 0 B
packages/esm-patient-forms-app/dist/591.js 16.8 kB 0 B
packages/esm-patient-forms-app/dist/631.js 3.85 kB 0 B
packages/esm-patient-forms-app/dist/636.js 4.87 kB 0 B
packages/esm-patient-forms-app/dist/713.js 4.72 kB 0 B
packages/esm-patient-forms-app/dist/725.js 2.98 kB 0 B
packages/esm-patient-forms-app/dist/757.js 618 B 0 B
packages/esm-patient-forms-app/dist/784.js 2.63 kB 0 B
packages/esm-patient-forms-app/dist/807.js 728 B 0 B
packages/esm-patient-forms-app/dist/858.js 106 kB 0 B
packages/esm-patient-forms-app/dist/879.js 2.88 kB 0 B
packages/esm-patient-forms-app/dist/main.js 7.98 kB 0 B
packages/esm-patient-forms-app/dist/openmrs-esm-patient-forms-app.js 3.44 kB 0 B
packages/esm-patient-immunizations-app/dist/278.js 1.77 kB 0 B
packages/esm-patient-immunizations-app/dist/442.js 11.2 kB 0 B
packages/esm-patient-immunizations-app/dist/508.js 1.27 kB 0 B
packages/esm-patient-immunizations-app/dist/574.js 139 B 0 B
packages/esm-patient-immunizations-app/dist/584.js 3.71 kB 0 B
packages/esm-patient-immunizations-app/dist/588.js 6.67 kB 0 B
packages/esm-patient-immunizations-app/dist/591.js 16.9 kB 0 B
packages/esm-patient-immunizations-app/dist/757.js 139 B 0 B
packages/esm-patient-immunizations-app/dist/784.js 2.64 kB 0 B
packages/esm-patient-immunizations-app/dist/807.js 138 B 0 B
packages/esm-patient-immunizations-app/dist/810.js 3.61 kB 0 B
packages/esm-patient-immunizations-app/dist/818.js 9.96 kB 0 B
packages/esm-patient-immunizations-app/dist/858.js 106 kB 0 B
packages/esm-patient-immunizations-app/dist/894.js 4.09 kB 0 B
packages/esm-patient-immunizations-app/dist/944.js 129 kB 0 B
packages/esm-patient-immunizations-app/dist/main.js 3.4 kB 0 B
packages/esm-patient-immunizations-app/dist/openmrs-esm-patient-immunizations-app.js 3.36 kB 0 B
packages/esm-patient-medications-app/dist/130.js 6.66 kB 0 B
packages/esm-patient-medications-app/dist/138.js 18.2 kB 0 B
packages/esm-patient-medications-app/dist/184.js 4.24 kB 0 B
packages/esm-patient-medications-app/dist/195.js 9.14 kB 0 B
packages/esm-patient-medications-app/dist/358.js 1.36 kB 0 B
packages/esm-patient-medications-app/dist/442.js 11.2 kB 0 B
packages/esm-patient-medications-app/dist/469.js 6.66 kB 0 B
packages/esm-patient-medications-app/dist/47.js 2.47 kB 0 B
packages/esm-patient-medications-app/dist/574.js 1.47 kB 0 B
packages/esm-patient-medications-app/dist/591.js 16.9 kB 0 B
packages/esm-patient-medications-app/dist/595.js 140 kB 0 B
packages/esm-patient-medications-app/dist/610.js 6.72 kB 0 B
packages/esm-patient-medications-app/dist/639.js 1.37 kB 0 B
packages/esm-patient-medications-app/dist/647.js 610 B 0 B
packages/esm-patient-medications-app/dist/722.js 2.25 kB 0 B
packages/esm-patient-medications-app/dist/784.js 2.64 kB 0 B
packages/esm-patient-medications-app/dist/807.js 1.72 kB 0 B
packages/esm-patient-medications-app/dist/858.js 106 kB 0 B
packages/esm-patient-medications-app/dist/879.js 2.89 kB 0 B
packages/esm-patient-medications-app/dist/94.js 5.93 kB 0 B
packages/esm-patient-medications-app/dist/main.js 3.44 kB 0 B
packages/esm-patient-medications-app/dist/openmrs-esm-patient-medications-app.js 3.42 kB 0 B
packages/esm-patient-notes-app/dist/145.js 6.14 kB 0 B
packages/esm-patient-notes-app/dist/188.js 2.42 kB 0 B
packages/esm-patient-notes-app/dist/195.js 9.13 kB 0 B
packages/esm-patient-notes-app/dist/21.js 352 B 0 B
packages/esm-patient-notes-app/dist/310.js 5.22 kB 0 B
packages/esm-patient-notes-app/dist/417.js 9.83 kB 0 B
packages/esm-patient-notes-app/dist/45.js 4.75 kB 0 B
packages/esm-patient-notes-app/dist/532.js 362 B 0 B
packages/esm-patient-notes-app/dist/542.js 117 kB 0 B
packages/esm-patient-notes-app/dist/574.js 633 B 0 B
packages/esm-patient-notes-app/dist/588.js 6.67 kB 0 B
packages/esm-patient-notes-app/dist/591.js 16.8 kB 0 B
packages/esm-patient-notes-app/dist/672.js 1.13 kB 0 B
packages/esm-patient-notes-app/dist/735.js 4.81 kB 0 B
packages/esm-patient-notes-app/dist/757.js 744 B 0 B
packages/esm-patient-notes-app/dist/784.js 2.63 kB 0 B
packages/esm-patient-notes-app/dist/807.js 909 B 0 B
packages/esm-patient-notes-app/dist/858.js 106 kB 0 B
packages/esm-patient-notes-app/dist/879.js 2.89 kB 0 B
packages/esm-patient-notes-app/dist/917.js 3.5 kB 0 B
packages/esm-patient-notes-app/dist/934.js 1.82 kB 0 B
packages/esm-patient-notes-app/dist/main.js 3.44 kB 0 B
packages/esm-patient-notes-app/dist/openmrs-esm-patient-notes-app.js 3.41 kB 0 B
packages/esm-patient-programs-app/dist/195.js 9.14 kB 0 B
packages/esm-patient-programs-app/dist/358.js 892 B 0 B
packages/esm-patient-programs-app/dist/442.js 11.2 kB 0 B
packages/esm-patient-programs-app/dist/462.js 3.09 kB 0 B
packages/esm-patient-programs-app/dist/507.js 126 kB 0 B
packages/esm-patient-programs-app/dist/534.js 1.8 kB 0 B
packages/esm-patient-programs-app/dist/574.js 584 B 0 B
packages/esm-patient-programs-app/dist/588.js 6.67 kB 0 B
packages/esm-patient-programs-app/dist/591.js 16.9 kB 0 B
packages/esm-patient-programs-app/dist/650.js 4.91 kB 0 B
packages/esm-patient-programs-app/dist/757.js 656 B 0 B
packages/esm-patient-programs-app/dist/784.js 2.64 kB 0 B
packages/esm-patient-programs-app/dist/798.js 3.99 kB 0 B
packages/esm-patient-programs-app/dist/807.js 835 B 0 B
packages/esm-patient-programs-app/dist/810.js 3.51 kB 0 B
packages/esm-patient-programs-app/dist/858.js 106 kB 0 B
packages/esm-patient-programs-app/dist/879.js 2.89 kB 0 B
packages/esm-patient-programs-app/dist/main.js 3.42 kB 0 B
packages/esm-patient-programs-app/dist/openmrs-esm-patient-programs-app.js 3.4 kB 0 B
packages/esm-patient-test-results-app/dist/149.js 93.2 kB 0 B
packages/esm-patient-test-results-app/dist/377.js 5.14 kB 0 B
packages/esm-patient-test-results-app/dist/442.js 11.2 kB 0 B
packages/esm-patient-test-results-app/dist/574.js 501 B 0 B
packages/esm-patient-test-results-app/dist/588.js 6.67 kB 0 B
packages/esm-patient-test-results-app/dist/591.js 16.9 kB 0 B
packages/esm-patient-test-results-app/dist/61.js 4.29 kB 0 B
packages/esm-patient-test-results-app/dist/725.js 9.65 kB 0 B
packages/esm-patient-test-results-app/dist/757.js 559 B 0 B
packages/esm-patient-test-results-app/dist/784.js 2.64 kB 0 B
packages/esm-patient-test-results-app/dist/807.js 633 B 0 B
packages/esm-patient-test-results-app/dist/833.js 1.13 kB 0 B
packages/esm-patient-test-results-app/dist/851.js 190 kB 0 B
packages/esm-patient-test-results-app/dist/858.js 106 kB 0 B
packages/esm-patient-test-results-app/dist/890.js 8.58 kB 0 B
packages/esm-patient-test-results-app/dist/896.js 833 B 0 B
packages/esm-patient-test-results-app/dist/980.js 48.4 kB 0 B
packages/esm-patient-test-results-app/dist/main.js 3.48 kB 0 B
packages/esm-patient-test-results-app/dist/openmrs-esm-patient-test-results-app.js 3.38 kB 0 B
packages/esm-patient-vitals-app/dist/195.js 9.14 kB 0 B
packages/esm-patient-vitals-app/dist/431.js 357 B 0 B
packages/esm-patient-vitals-app/dist/435.js 7.59 kB 0 B
packages/esm-patient-vitals-app/dist/442.js 11.2 kB 0 B
packages/esm-patient-vitals-app/dist/499.js 3.11 kB 0 B
packages/esm-patient-vitals-app/dist/532.js 668 B 0 B
packages/esm-patient-vitals-app/dist/574.js 687 B 0 B
packages/esm-patient-vitals-app/dist/588.js 6.67 kB 0 B
packages/esm-patient-vitals-app/dist/591.js 16.8 kB 0 B
packages/esm-patient-vitals-app/dist/641.js 7.17 kB 0 B
packages/esm-patient-vitals-app/dist/750.js 98.2 kB 0 B
packages/esm-patient-vitals-app/dist/757.js 857 B 0 B
packages/esm-patient-vitals-app/dist/771.js 1.41 kB 0 B
packages/esm-patient-vitals-app/dist/784.js 2.63 kB 0 B
packages/esm-patient-vitals-app/dist/807.js 998 B 0 B
packages/esm-patient-vitals-app/dist/855.js 143 kB 0 B
packages/esm-patient-vitals-app/dist/858.js 106 kB 0 B
packages/esm-patient-vitals-app/dist/879.js 2.88 kB 0 B
packages/esm-patient-vitals-app/dist/91.js 4.95 kB 0 B
packages/esm-patient-vitals-app/dist/93.js 5.99 kB 0 B
packages/esm-patient-vitals-app/dist/941.js 360 B 0 B
packages/esm-patient-vitals-app/dist/main.js 3.44 kB 0 B
packages/esm-patient-vitals-app/dist/openmrs-esm-patient-vitals-app.js 3.4 kB 0 B

compressed-size-action

@ibacher ibacher changed the title (refactor) Setup esm-form-entry to use webpack module federation (fix) Setup esm-form-entry to use webpack module federation May 22, 2023
@ibacher
Copy link
Member

ibacher commented May 22, 2023

Still, I've not had much success trying to tweak it for this purpose.

Yeah, I don't think SingleSPA's docs have kept up with Angular.

NB: This PR requires openmrs/openmrs-esm-core#677 to work.

This works on my machine (with my tweaks) as is

Copy link
Member

@ibacher ibacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @denniskigen! Excellent work!

@ibacher ibacher merged commit 3d1e771 into main May 22, 2023
@ibacher ibacher deleted the refactor/webpack-module-federation branch May 22, 2023 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants