babel-plugin-unpkg
v1.0.0
Published
Resolve bare ES module specifiers to unpkg.com URLs with Babel
Downloads
3
Maintainers
Readme
input
import React from "react"
import router from "@angular/router"
import map from "lodash.map"
import fs from "pn/fs"
import cupcakes from "./cupcakes"
import shoelaces from "/shoelaces"
import something from "//something.com/whatevs"
import something from "http://something.com/whatevs"
let ReactDOM = require("react-dom")
export React from "react"
export { Component } from "react"
export * from "react"
export var message = "hello"
output
import React from "https://unpkg.com/[email protected]?module"
import router from "https://unpkg.com/@angular/[email protected]?module"
import map from "https://unpkg.com/[email protected]?module"
import fs from "https://unpkg.com/[email protected]/fs?module"
import cupcakes from "./cupcakes?module"
import shoelaces from "/shoelaces?module"
import something from "//something.com/whatevs"
import something from "http://something.com/whatevs"
let ReactDOM = require("react-dom")
export React from "https://unpkg.com/[email protected]?module"
export { Component } from "https://unpkg.com/[email protected]?module"
export * from "https://unpkg.com/[email protected]?module"
export var message = "hello"