This instructions are for reproducing in Deno. Please note that the same code snippet will also reproduce the issue in any modern browser which supports ESM, namely via <script type="module">.
-
Install Deno following the installation instructions for your platform;
-
Execute
deno run https://gist.githubusercontent.com/cmorten/fdffbd9ce521b6436f5fcbce429e752d/raw/d20036022c30ea8011def64a741aa82155c2afff/mod.tsto run themod.tscode in this gist. -
Observe that the rollup browser distribution throws the error:
error: Uncaught TypeError: Cannot read property 'split' of undefined