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

nit pick #110

Open
jimmywarting opened this issue Jan 28, 2022 · 0 comments
Open

nit pick #110

jimmywarting opened this issue Jan 28, 2022 · 0 comments

Comments

@jimmywarting
Copy link

Do you think import is only for typescript?

// TypeScript
import { v2 as webdav } from 'webdav-server'
// Javascript
const webdav = require('webdav-server').v2;

no it's for esm/cjs

// ESM
import { v2 as webdav } from 'webdav-server'
// CJS
const webdav = require('webdav-server').v2;
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