Skip to content

Show ImportMap in Page Source Blazor #62188

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

Closed
MahdiElahi opened this issue May 31, 2025 · 1 comment
Closed

Show ImportMap in Page Source Blazor #62188

MahdiElahi opened this issue May 31, 2025 · 1 comment
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved

Comments

@MahdiElahi
Copy link

I migrate from .net8 to ,net 9 blazor server
when add ImportMap in App.razor
now when run project see this in inspect element , why show this
i dont use at all from import map
i just add MapStaticFiles and importmap

before head

<script type="importmap">{ "imports": { "./_content/AuralizeBlazor/js/auralize.min.js": "./_content/AuralizeBlazor/js/auralize.min.41c6kdndrr.js", "./_content/AuralizeBlazor/js/components/auralizer.js": "./_content/AuralizeBlazor/js/components/auralizer.g9uc5uyjni.js", "./_content/AuralizeBlazor/js/features/baseFeatures.js": "./_content/AuralizeBlazor/js/features/baseFeatures.b33xjabh4x.js", "./_content/AuralizeBlazor/js/features/energyMeterFeature.js": "./_content/AuralizeBlazor/js/features/energyMeterFeature.y5q93ac80o.js", "./_content/AuralizeBlazor/js/features/lyricDisplayFeature.js": "./_content/AuralizeBlazor/js/features/lyricDisplayFeature.o0kmjtfnuf.js", "./_content/AuralizeBlazor/js/features/radialRadiusFeature.js": "./_content/AuralizeBlazor/js/features/radialRadiusFeature.8pe0o0pxdo.js", "./_content/AuralizeBlazor/js/features/showLogoFeature.js": "./_content/AuralizeBlazor/js/features/showLogoFeature.b6uxisma2k.js", "./_content/AuralizeBlazor/js/features/switchPresetFeature.js": "./_content/AuralizeBlazor/js/features/switchPresetFeature.gz40keu9cs.js", "./_content/AuralizeBlazor/js/features/waveNodeFeature.js": "./_content/AuralizeBlazor/js/features/waveNodeFeature.65yj8vk56s.js", "./_content/AuralizeBlazor/js/lib/audioMotion4.4.0.min.js": "./_content/AuralizeBlazor/js/lib/audioMotion4.4.0.min.xt6mxz1zrj.js", "./_content/BlazorJS/BlazorJS.lib.browserDetect.js": "./_content/BlazorJS/BlazorJS.lib.browserDetect.6ml5dwhult.js", "./_content/BlazorJS/BlazorJS.lib.eventHelper.js": "./_content/BlazorJS/BlazorJS.lib.eventHelper.i6t2zollmx.js", "./_content/BlazorJS/BlazorJS.lib.module.js": "./_content/BlazorJS/BlazorJS.o5pk8zvhtc.lib.module.js", "./_content/MudBlazor.Markdown/MudBlazor.Markdown.MathJax.min.js": "./_content/MudBlazor.Markdown/MudBlazor.Markdown.MathJax.min.o64s4n8ltk.js", "./_content/MudBlazor.Markdown/MudBlazor.Markdown.min.js": "./_content/MudBlazor.Markdown/MudBlazor.Markdown.min.jnj2lw4nf2.js", "./_content/MudBlazor/MudBlazor.min.js": "./_content/MudBlazor/MudBlazor.min.jrqzp895hu.js", "./_content/MudExRichTextEditor/js/components/MudExRichTextEdit.js": "./_content/MudExRichTextEditor/js/components/MudExRichTextEdit.0nv94v0dmu.js", "./_content/MudExRichTextEditor/js/components/MudExRichTextEdit.min.js": "./_content/MudExRichTextEditor/js/components/MudExRichTextEdit.min.z57t3kloj7.js", "./_content/MudExRichTextEditor/lib/quill/quill.core.js": "./_content/MudExRichTextEditor/lib/quill/quill.core.4yh8wvwvs1.js", "./_content/MudExRichTextEditor/lib/quill/quill.core.min.js": "./_content/MudExRichTextEditor/lib/quill/quill.core.min.4if5oagocr.js", "./_content/MudExRichTextEditor/lib/quill/quill.js": "./_content/MudExRichTextEditor/lib/quill/quill.dqsbkks2s9.js", "./_content/MudExRichTextEditor/lib/quill/quill.min.js": "./_content/MudExRichTextEditor/lib/quill/quill.min.4p8vuf98vu.js", "./_content/MudExRichTextEditor/modules/quill-better-table.min.js": "./_content/MudExRichTextEditor/modules/quill-better-table.min.fj3edyqs0v.js", "./_content/MudExRichTextEditor/modules/quill-blot-formatter.min.js": "./_content/MudExRichTextEditor/modules/quill-blot-formatter.min.06wjpxauos.js", "./_content/MudExRichTextEditor/modules/quill.imageCompressor.min.js": "./_content/MudExRichTextEditor/modules/quill.imageCompressor.min.gg93kq467g.js", "./_content/MudExRichTextEditor/modules/quill.mention.min.js": "./_content/MudExRichTextEditor/modules/quill.mention.min.059v5u8jp5.js", "./_content/MudExRichTextEditor/modules/quill.mention.module.min.js": "./_content/MudExRichTextEditor/modules/quill.mention.module.min.etx6s6ik6v.js", "./_content/MudExRichTextEditor/modules/quill.mention.module.js": "./_content/MudExRichTextEditor/modules/quill.mention.module.nk0s4xeqxo.js", "./_content/Nextended.Blazor/exampleJsInterop.js": "./_content/Nextended.Blazor/exampleJsInterop.6pqz8bsss0.js", "./_framework/dotnet.native.js": "./_framework/dotnet.native.hmanx9razn.js", "./_framework/dotnet.js": "./_framework/dotnet.nseotsck93.js", "./_framework/dotnet.runtime.js": "./_framework/dotnet.runtime.o8gq1i8bk6.js", "./admin-template/js/app-ecommerce-dashboard.js": "./admin-template/js/app-ecommerce-dashboard.4urj92vzd9.js", "./admin-template/js/app-ecommerce-dashboard.min.js": "./admin-template/js/app-ecommerce-dashboard.min.mppaot6tx2.js", "./admin-template/js/config.js": "./admin-template/js/config.azphohk5d2.js", "./admin-template/js/config.min.js": "./admin-template/js/config.min.7veh6avmj8.js", "./admin-template/js/core.js": "./admin-template/js/core.nu4sheeji2.js", "./admin-template/js/forms-selects.js": "./admin-template/js/forms-selects.40kfcz9rn9.js", "./admin-template/js/main.js": "./admin-template/js/main.7m98ph7vrp.js", "./admin-template/js/main.min.js": "./admin-template/js/main.min.gqscfjbmb3.js", "./admin-template/js/pages-auth.js": "./admin-template/js/pages-auth.jy834ss63z.js", "./admin-template/vendor/js/bootstrap.min.js": "./admin-template/vendor/js/bootstrap.min.gerrvzgpai.js", "./admin-template/vendor/js/bootstrap.js": "./admin-template/vendor/js/bootstrap.wv651sjhpv.js", "./admin-template/vendor/js/form-wizard-numbered.js": "./admin-template/vendor/js/form-wizard-numbered.t9cu90t7dq.js", "./admin-template/vendor/js/helpers.js": "./admin-template/vendor/js/helpers.lzusutkgjd.js", "./admin-template/vendor/js/helpers.min.js": "./admin-template/vendor/js/helpers.min.ebhkfagoac.js", "./admin-template/vendor/js/menu.min.js": "./admin-template/vendor/js/menu.min.19gzk0p0xd.js", "./admin-template/vendor/js/menu.js": "./admin-template/vendor/js/menu.onw8und386.js", "./admin-template/vendor/js/template-customizer.js": "./admin-template/vendor/js/template-customizer.hwyi6e0k98.js", "./admin-template/vendor/libs/apex-charts/apexcharts.js": "./admin-template/vendor/libs/apex-charts/apexcharts.xh7rnxe5rb.js", "./admin-template/vendor/libs/bootstrap-select/bootstrap-select.min.js": "./admin-template/vendor/libs/bootstrap-select/bootstrap-select.min.kuclws3ijh.js", "./admin-template/vendor/libs/bootstrap-select/bootstrap-select.js": "./admin-template/vendor/libs/bootstrap-select/bootstrap-select.s3keuzu6cv.js", "./admin-template/vendor/libs/bs-stepper/bs-stepper.js": "./admin-template/vendor/libs/bs-stepper/bs-stepper.hnnru76dk7.js", "./admin-template/vendor/libs/datatables-bs5/datatables-bootstrap5.js": "./admin-template/vendor/libs/datatables-bs5/datatables-bootstrap5.cyrdnmtr1c.js", "./admin-template/vendor/libs/dropzone/dropzone.js": "./admin-template/vendor/libs/dropzone/dropzone.d6lyf92vzl.js", "./admin-template/vendor/libs/hammer/hammer.js": "./admin-template/vendor/libs/hammer/hammer.3r66j28ns6.js", "./admin-template/vendor/libs/i18n/i18n.js": "./admin-template/vendor/libs/i18n/i18n.3gqjl5ipv9.js", "./admin-template/vendor/libs/jquery/jquery.js": "./admin-template/vendor/libs/jquery/jquery.lujg0j16pp.js", "./admin-template/vendor/libs/jquery/jquery.min.js": "./admin-template/vendor/libs/jquery/jquery.min.2a39xq90qa.js", "./admin-template/vendor/libs/leaf/Leaflet.fullscreen.min.js": "./admin-template/vendor/libs/leaf/Leaflet.fullscreen.min.58mn3ofwq9.js", "./admin-template/vendor/libs/leaflet/leaflet.js": "./admin-template/vendor/libs/leaflet/leaflet.h7080vqle0.js", "./admin-template/vendor/libs/node-waves/node-waves.js": "./admin-template/vendor/libs/node-waves/node-waves.dp8z4v4c29.js", "./admin-template/vendor/libs/node-waves/node-waves.min.js": "./admin-template/vendor/libs/node-waves/node-waves.min.z9bx8iwta7.js", "./admin-template/vendor/libs/perfect-scrollbar/perfect-scrollbar.js": "./admin-template/vendor/libs/perfect-scrollbar/perfect-scrollbar.09cqdlsd0c.js", "./admin-template/vendor/libs/perfect-scrollbar/perfect-scrollbar.min.js": "./admin-template/vendor/libs/perfect-scrollbar/perfect-scrollbar.min.m9wjya1446.js", "./admin-template/vendor/libs/popper/popper.js": "./admin-template/vendor/libs/popper/popper.96qyxx1itu.js", "./admin-template/vendor/libs/popper/popper.min.js": "./admin-template/vendor/libs/popper/popper.min.53962vt64j.js", "./admin-template/vendor/libs/select2/select2.js": "./admin-template/vendor/libs/select2/select2.9vbu99enpz.js", "./admin-template/vendor/libs/select2/select2.min.js": "./admin-template/vendor/libs/select2/select2.min.ja0ufr9nzt.js", "./admin-template/vendor/libs/swiper/swiper.js": "./admin-template/vendor/libs/swiper/swiper.5bal6q2kjc.js", "./admin-template/vendor/libs/typeahead-js/typeahead.js": "./admin-template/vendor/libs/typeahead-js/typeahead.laxwu097nu.js", "./admin-template/vendor/libs/typeahead-js/typeahead.min.js": "./admin-template/vendor/libs/typeahead-js/typeahead.min.wwyqxw3ydy.js", "./client-assets/js/auto-height.js": "./client-assets/js/auto-height.svrqglvppu.js", "./client-assets/js/bootstrap/bootstrap-notify.min.js": "./client-assets/js/bootstrap/bootstrap-notify.min.aqfdhxtu3c.js", "./client-assets/js/bootstrap/bootstrap.bundle.min.js": "./client-assets/js/bootstrap/bootstrap.bundle.min.kjv9zmwy02.js", "./client-assets/js/bootstrap/popper.min.js": "./client-assets/js/bootstrap/popper.min.hlxox4fi4o.js", "./client-assets/js/custom-wow.js": "./client-assets/js/custom-wow.e3ph60fmpa.js", "./client-assets/js/custom.js": "./client-assets/js/custom.kn4vjbz60n.js", "./client-assets/js/feather/feather-icon.js": "./client-assets/js/feather/feather-icon.g8qvg562ry.js", "./client-assets/js/feather/feather.min.js": "./client-assets/js/feather/feather.min.rseobvazbe.js", "./client-assets/js/fly-cart.js": "./client-assets/js/fly-cart.nvlmt9nq4s.js", "./client-assets/js/goftino.js": "./client-assets/js/goftino.rlkpzoqu9j.js", "./client-assets/js/jquery-3.6.0.min.js": "./client-assets/js/jquery-3.6.0.min.4oh48uzd19.js", "./client-assets/js/jquery-ui.min.js": "./client-assets/js/jquery-ui.min.hjqnekrsb1.js", "./client-assets/js/lazysizes.min.js": "./client-assets/js/lazysizes.min.x15y34kosi.js", "./client-assets/js/product-details.js": "./client-assets/js/product-details.q1ly10kco1.js", "./client-assets/js/quantity.js": "./client-assets/js/quantity.mc42anm3wo.js", "./client-assets/js/script.js": "./client-assets/js/script.43k9oxk2q0.js", "./client-assets/js/slick/custom_slick.js": "./client-assets/js/slick/custom_slick.ghwfbixjie.js", "./client-assets/js/slick/slick.js": "./client-assets/js/slick/slick.ljt8z2f5ln.js", "./client-assets/js/theme-setting.js": "./client-assets/js/theme-setting.rfvkrfowkh.js", "./client-assets/js/timer1.js": "./client-assets/js/timer1.mxk9mwaxrf.js", "./client-assets/js/timer2.js": "./client-assets/js/timer2.81x1fwxvwy.js", "./client-assets/js/timer3.js": "./client-assets/js/timer3.piedebr28f.js", "./client-assets/js/timer4.js": "./client-assets/js/timer4.h3nc5bm8o6.js", "./client-assets/js/wow.min.js": "./client-assets/js/wow.min.fw6b1q07ds.js", "./client-assets/lib/swiper/swiper-bundle.min.js": "./client-assets/lib/swiper/swiper-bundle.min.pdy5psw0hf.js", "./js/compare-echart.js": "./js/compare-echart.lr7nqo9mac.js", "./js/dashboards-analytics.js": "./js/dashboards-analytics.t3vylnzhwy.js", "./js/extended-ui-timeline.js": "./js/extended-ui-timeline.zpaxq8o86m.js", "./js/maps-leaflet.js": "./js/maps-leaflet.s6mvn7td55.js", "./js/search-echart.js": "./js/search-echart.2wxu4ej7dl.js", "./js/site.js": "./js/site.5imbqgjoet.js", "./js/topbar-site.js": "./js/topbar-site.lz1fc90t27.js", "./js/ui-toasts.js": "./js/ui-toasts.o58h6ke7em.js", "./lib/animate-on-scroll/animate-on-scroll.js": "./lib/animate-on-scroll/animate-on-scroll.ehz1bhntce.js", "./lib/echart/echarts.min.js": "./lib/echart/echarts.min.expk4hx39d.js", "./lib/leaflet-fullscreen/Leaflet.fullscreen.js": "./lib/leaflet-fullscreen/Leaflet.fullscreen.dzb52u78kl.js", "./lib/leaflet-fullscreen/Leaflet.fullscreen.min.js": "./lib/leaflet-fullscreen/Leaflet.fullscreen.min.6w1huv7k6o.js", "./lib/leaflet-markercluster/leaflet.markercluster-src.js": "./lib/leaflet-markercluster/leaflet.markercluster-src.8w6ul90vgy.js", "./lib/leaflet-markercluster/leaflet.markercluster-src.min.js": "./lib/leaflet-markercluster/leaflet.markercluster-src.min.beuggqltsi.js", "./lib/leaflet-markercluster/leaflet.markercluster.js": "./lib/leaflet-markercluster/leaflet.markercluster.i0lqpjirlc.js", "./lib/leaflet-markercluster/leaflet.markercluster.min.js": "./lib/leaflet-markercluster/leaflet.markercluster.min.ql7i3rh7qm.js", "./lib/leaflet-sidebar/leaflet-sidebar.min.js": "./lib/leaflet-sidebar/leaflet-sidebar.min.tnja2y9vx4.js", "./lib/leaflet-sidebar/leaflet-sidebar.js": "./lib/leaflet-sidebar/leaflet-sidebar.ttvis1k8zs.js", "./lib/leaflet/leaflet-src.js": "./lib/leaflet/leaflet-src.k8gu1njvky.js", "./lib/leaflet/leaflet-src.min.js": "./lib/leaflet/leaflet-src.min.e2v77kbsuc.js", "./lib/leaflet/leaflet.min.js": "./lib/leaflet/leaflet.min.wfmfr8uykb.js", "./lib/leaflet/leaflet.js": "./lib/leaflet/leaflet.v78t325kt9.js", "./lib/sidebar-layout/template-customizer.js": "./lib/sidebar-layout/template-customizer.memms81jgm.js", "./lib/toastr/toastr.js": "./lib/toastr/toastr.ttpkaqn2zn.js", "./lib/topbar/prettify.min.js": "./lib/topbar/prettify.min.17ltbjx098.js", "./lib/topbar/topbar.min.js": "./lib/topbar/topbar.min.qzezzyhs1c.js", "./lib/truf/turf.min.js": "./lib/truf/turf.min.wotqfi4v15.js", "_framework/resource-collection.js": "./_framework/resource-collection.0XDy2.js", "_framework/resource-collection.js.gz": "./_framework/resource-collection.0XDy2.js.gz" }, "integrity": { "./_framework/resource-collection.0XDy2.js": "sha256-DcuuNB1jA2HYPZO+BLVqPv0EADvQ4Ii0afcEEmiK0YM=", "./_framework/resource-collection.0XDy2.js.gz": "sha256-DcuuNB1jA2HYPZO+BLVqPv0EADvQ4Ii0afcEEmiK0YM=" } }</script>

@github-actions github-actions bot added the area-blazor Includes: Blazor, Razor Components label May 31, 2025
@javiercn
Copy link
Member

@MahdiElahi thanks for contacting us.

The import map is used to map well-known names to fingerprinted URLs so that when a script performs an import library.js the browser resolves to library.fingerprint.js.

This allows for the files to be cached indefinitely and for updating modules independently, since updating a dependency doesn't require invalidating the consumers of the dependency just because the hash changed.

By default, the importmap includes all the JS files in your project as we've discovered during the build/publish process. You can provide your own importmap to the importmap component to tweak the exact list of entries that show up there.

@javiercn javiercn added question ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. labels May 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved
Projects
None yet
Development

No branches or pull requests

2 participants