Rich-Harris / shimport

Use JavaScript modules in all browsers, including dynamic imports

Home Page:https://shimport-demos.surge.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trailing commas break imports

chowey opened this issue · comments

Something like this seems to be valid JS:

import {
  A,
  B,
} from "./my-lib.js";

Note the trailing comma after B.

Shimport breaks on such an import. It's a shame, because my auto-formatter adds those commas.