rollup / rollup-starter-lib

Bare-bones example of how to create a library using Rollup
MIT License
966 stars 229 forks source link

For reference how is const howLongTillLunch = require('..') working? #16

Closed iannazzi closed 5 years ago

iannazzi commented 6 years ago

I am assuming const howLongTillLunch = require('..'); reads package.json and pulls dist/how-long-till-lunch.umd.js from browser

Can someone confirm?

MariusMeiners commented 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 Githubissues.

  • Githubissues is a development platform for aggregating issues.