Comments (2)
Hi @HemTech, good question. The import maps spec strictly forbids this behavior (docs):
As another consequence of how import maps affect all imports, attempting to add a new <script type="importmap"> after any module graph fetching has started is an error. The import map will be ignored, and the <script> element will fire an error event.
Contrary to the spec, SystemJS provides a few APIs that support modifying the module registry without reloading the page. Specifically, System.delete plus a subsequent System.import()
will cause the module to be downloaded again.
Additionally, in the last several days, SystemJS has considered deviating from the spec to allow for direct import map updates. See systemjs/systemjs#2215, systemjs/systemjs#2211, and https://github.com/guybedford/import-maps-extensions.
I'm open to this feature being added to import-map-overrides, but there are a few edge cases that might become tricky, as this is essentially hot reloading of modules. One question for you - are you using import-map-overrides for local development purposes, or for managing deployments? I would strongly discourage using it as a deployment mechanism.
from import-map-overrides.
This issue seems to be stale. With the current vision about moving towards ESM, I believe we can close it, for the time being. @HemTech, please, feel free to add comments in case you want it to be reopened.
from import-map-overrides.
Related Issues (20)
- Confusing reload icon after adding an override HOT 6
- IE 11 broken HOT 4
- Overrides triggers cross-origin issue when loaded into iframe (MS Teams) HOT 1
- buttons in ui can get "bad" styling HOT 1
- Failed to execute `attachShadow` on `Element` in 3.0.0 HOT 10
- Server-side single maps - cookie should specify a path HOT 1
- Bug introduced by terser HOT 1
- Is there a way to disable Auto Dev Lib Override? HOT 2
- how can i create E2E cypress tests? HOT 4
- Hi, I have this error in the console : Shadow root cannot be created on a host which already hosts a shadow tree. HOT 7
- Is it possible to support SystemJS and native imports at the same time? HOT 1
- Import maps blocked in Safari HOT 2
- cross-origin when trying to embed the single-spa app, with devtools enabled, in an iframe HOT 1
- Add configuration to control where the UI button is positioned HOT 4
- Relative imports in an import map accessed from a remote JSON file should be resolved w.r.t. the domain of the remote, not the domain of the host HOT 3
- Attribute trigger-position does not have any effect HOT 3
- An import map is added after module script load was triggered. HOT 2
- When parsing an empty script tag of type importmap the parser throws an error. Is this OK?
- Warning while building import-map-overrides-server.js HOT 1
- An option to disable overrides via GET parameter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from import-map-overrides.