Closed iannazzi closed 5 years ago
from my understanding no. Require should load the cjs version and not the umd one. From what i understand umd is supposed to be served to unpkg or another cdn. And its intended to be used with a
For nodejs require('..')
will read package.json
and read the file specified by main
.
I am assuming
const howLongTillLunch = require('..');
readspackage.json
and pullsdist/how-long-till-lunch.umd.js
frombrowser
Can someone confirm?