Can I use Atomico in browsers without ESM support?
Last updated
Was this helpful?
Last updated
Was this helpful?
Yes, but Atomico doesn't only depend on ESM, it also depends on the following api's that you will have to cover with Polyfill or some bundle tool.
ESM modules: -
CustomElements: -
ShadowRoot: -
Map: -
Symbol and Symbol.for: -
append and prepend: -
Declarative Shadow DOM: Only for using SSR with webcomponents that use shadowDOM.
Let's understand that today Atomico covers 94% of existing browsers without the need for polyfills or packers, the 6% not covered are usually browsers like ie11 or others.
If you depend on the uncovered segment of browsers you can use the following tools to support the apis necessary for Atomico to work.
to associate Map, Symbol, append and prepend.
to associate esm.
to associate customElements apis.