Can I use Atomico in browsers without ESM support?

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.

  1. ESM modules: documentation - caniuse

  2. CustomElements: documentation - caniuse

  3. ShadowRoot: documentation - caniuse

  4. Symbol and Symbol.for: documentation - caniuse

  5. append and prepend: documentation - caniuse

  6. Declarative Shadow DOM: Only for using SSR with webcomponents that use shadowDOM. documentation

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.

Last updated