Skip to content
Experiments in how to use unpkg
HTML JavaScript TypeScript
Branch: master
Clone or download
mjackson Merge pull request #2 from danieluhl/master
Adds charset for babel script
Latest commit 4d0e6f0 Aug 28, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
global-react adds charset for babel script Aug 28, 2017
module-d3 Update D3 demo Aug 24, 2017
systemjs-angular Update demos Aug 23, 2017
systemjs-react Update demos Aug 23, 2017
webpack-react doc: (modules -> dynamic)-cdn-webpack-plugin Aug 25, 2017
.gitignore Initial commit Jun 21, 2017 Update README Aug 25, 2017

This repository contains demos of using to load and run various libraries in different ways. Each demo contains a README that explains a little bit more about how to use it and why it's interesting.

The following demos are currently available:

  • global-react - Loads React as a global with JSX support
  • webpack-react - Uses webpack to automatically detect and load React as a global, with JSX compilation at build time
  • systemjs-react - Uses SystemJS to load React as modules, with JSX support
  • systemjs-angular - Uses SystemJS to load Angular as modules, with TypeScript support
  • module-d3 - Uses <script type=module> to load D3 and all of its dependencies from the CDN. Only works in Chrome 61+ and other browsers that have support for <script type=module>

If you're using a technique you don't see listed here, please contribute! There are lots of different ways to use unpkg, and we're just scratching the surface.

You can’t perform that action at this time.