Use type: "module" for all @innodoc packages
- Refactor
@innodoc/*
packages to havetype: "module"
andexports: "./src/index.js"
in theirpackage.json
. - Properly export modules to
src/index.js
- Change all imports from
import [...] from '@innodoc/client-misc/src/foo/bar'
toimport { 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.