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

Use type: "module" for all @innodoc packages #170

Open
tumidi opened this issue Jul 11, 2022 · 0 comments
Open

Use type: "module" for all @innodoc packages #170

tumidi opened this issue Jul 11, 2022 · 0 comments
Assignees
Labels

Comments

@tumidi
Copy link
Contributor

tumidi commented Jul 11, 2022

  • Refactor @innodoc/* packages to have type: "module" and exports: "./src/index.js" in their package.json.
  • Properly export modules to src/index.js
  • Change all imports from import [...] from '@innodoc/client-misc/src/foo/bar' to import { fooBar } from @innodoc/client-misc.
  • Use .js extension consistently as both Node.js and webpack go with the specs.

This way modules are importable from both Node.js (using dynamic import) and webpack build.

@tumidi tumidi self-assigned this Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant