Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for including external scripts/libraries #165

Open
kangax opened this issue Nov 10, 2016 · 5 comments
Open

Add support for including external scripts/libraries #165

kangax opened this issue Nov 10, 2016 · 5 comments

Comments

@kangax
Copy link

kangax commented Nov 10, 2016

Sometimes I wish I could use lodash when experimenting with a plugin.

@fkling
Copy link
Owner

fkling commented Nov 10, 2016

Maybe we can use https://unpkg.com/ to achieve that?

@hzoo
Copy link
Collaborator

hzoo commented Nov 15, 2016

Possibly? What wondering how it would be able to handle pkgs that don't produce a built file and use require though. This was an issue for babel plugins in the repl unless it auto bundles them like in https://wzrd.in/ (browserify as a service)

babel/website#858

@xtuc
Copy link
Contributor

xtuc commented Aug 29, 2017

You load them from bundle.run which is a Rollup/Browserify as a service with a CDN.

@tsiq-swyx
Copy link

how exactly do you use bundle.run in astexplorer?

@j4k0xb
Copy link

j4k0xb commented Jul 2, 2023

I think this could be easily solved if the plugin/transform gets loaded as esm instead of transforming it to commonjs.
Browser already natively support importing from a remote url:

import * as m from "https://esm.sh/@codemod/matchers@1.7.0";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants