3 ms·
They're actual ES modules (so with the `export` syntax on their end, allowing `import` with `<script type="module">` in compliant browsers). Most NPM modules a
by RobertKerans 6y ago
They're actual ES modules (so with the `export` syntax on their end, allowing `import` with `<script type="module">` in compliant browsers).
Most NPM modules aren't ESM and aren't usable in that way. This allows it, it's a really good thing! Hopefully pushes things towards much wider usage of modules in the browser, which would make a life a bit more sane in FE world.