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

CDN link for browser. #423

Open
suchislife801 opened this issue Mar 12, 2022 · 4 comments
Open

CDN link for browser. #423

suchislife801 opened this issue Mar 12, 2022 · 4 comments

Comments

@suchislife801
Copy link

Hello. Is there a CDN link for devs who don't use node js? What if someone wants to create a browser app in the browser. No server side. does this still work?

@chrisguttandin
Copy link
Owner

Hi @webdev3301, the package is meant to be used in the browser. But it needs to be used with a bundler like webpack.

If you want to avoid that you could use an online service like JSPM which does the bundling for you.

<script type="module">
    import { setTimeout } from 'https://dev.jspm.io/npm:worker-timers';
    
    setTimeout(() => console.log('hello'), 1000);
</script>

@suchislife801
Copy link
Author

Ahhh... webpack. Hard pass.

@chrisguttandin
Copy link
Owner

Yeah, I know it's not everyone's favorite tool. Does using JSPM as shown in the example above work for you?

@ROBERT-MCDOWELL
Copy link

I'm looking for also a simple JS minified link to import as <script src....></script>
pure JS is the best for me.

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

3 participants