8000 It may be a good idea to return `.default` by default · Issue #15 · link-foundation/use-m · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

It may be a good idea to return .default by default #15

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

Open
Konard opened this issue Mar 14, 2025 · 0 comments
Open

It may be a good idea to return .default by default #15

Konard opened this issue Mar 14, 2025 · 0 comments

Comments

@Konard
Copy link
Member
Konard commented Mar 14, 2025
// const axios = require('axios');
// const _ = require('lodash');
// const faker = require('faker');

const { use } = eval(
  await fetch('https://unpkg.com/use-m/use.js').then(u => u.text())
); 

const _ = await use('lodash@4');
const axios = (await use('axios@1')).default;
const faker = await use('faker@5');

Or maybe not - need to think.

@Konard Konard transferred this issue from link-foundation/link-cli Apr 6, 2025
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

1 participant
0