Closed zachleat closed 2 years ago
I think that the reference to a .cjs
file comes from the instructions at https://github.com/developit/microbundle#-installation--setup--, but that info is out of date.
The main
field should probably be set to the .umd.js
file, as shown in the example a little bit further down the page.
A quick work around is to import the specific file manually.
eg. import { URLPattern } from 'urlpattern-polyfill/dist/index.umd';
I don’t see an index.cjs in the dist folder locally on
rc1
—did I miss something?