Closed Jack-Works closed 4 years ago
Hi! I have written an awesome transformer! With this transformer, people can write any node imports and use them directly in the browser (load as UMD)
Before
import React from 'react' import * as AsyncCall from 'async-call-rpc' import isarray from 'isarray'
After
const React = __bindCheck(__esModuleCheck(globalThis.React), ['default'], 'react', 'globalThis.React').default import * as AsyncCall from 'https://unpkg.com/async-call-rpc@latest/?module' import isarray from '/web_modules/isarray.js'
thank you!
Hi! I have written an awesome transformer! With this transformer, people can write any node imports and use them directly in the browser (load as UMD)
Before
After