Skip to content

Instantly share code, notes, and snippets.

View yysun's full-sized avatar
💭
Working on AppRun

Yiyi Sun yysun

💭
Working on AppRun
View GitHub Profile
@Rich-Harris
Rich-Harris / README.md
Last active May 31, 2019 14:40
rollup-plugin-unpkg behaviour

From this Twitter convo. It would be cool to have a plugin that allowed you to use bare module specifiers (import * as React from 'react') in your app, and converted them to unpkg.com URLs.

Say you have these two source files:

// main.js
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import message from './message.js';