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

Deno compatibility issue #62

Closed
salemalem opened this issue Oct 20, 2021 · 3 comments
Closed

Deno compatibility issue #62

salemalem opened this issue Oct 20, 2021 · 3 comments

Comments

@salemalem
Copy link

How to make it Deno compatible?

@huozhi
Copy link
Owner

huozhi commented Oct 20, 2021

How do you use it with deno? The CLI or just API part?

@salemalem
Copy link
Author

API

@huozhi
Copy link
Owner

huozhi commented Oct 21, 2021

Please checkout deno commonjs module loading tutorial

deno run --unstable --allow-read --allow-env --allow-write ./run.ts
// run.ts
import { createRequire } from 'https://deno.land/std@0.112.0/node/module.ts'

const require = createRequire(import.meta.url)
const { bundle } = require('bunchee')

await bundle(
  'entry-test.js', 
  {
    file: 'entry-test.dist.js', 
    format: 'cjs'
  }
)

@huozhi huozhi closed this as completed Oct 21, 2021
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

2 participants