We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@innodoc/*
type: "module"
exports: "./src/index.js"
package.json
src/index.js
import [...] from '@innodoc/client-misc/src/foo/bar'
import { fooBar } from @innodoc/client-misc
.js
This way modules are importable from both Node.js (using dynamic import) and webpack build.
import
The text was updated successfully, but these errors were encountered:
tumidi
No branches or pull requests
@innodoc/*
packages to havetype: "module"
andexports: "./src/index.js"
in theirpackage.json
.src/index.js
import [...] from '@innodoc/client-misc/src/foo/bar'
toimport { fooBar } from @innodoc/client-misc
..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.The text was updated successfully, but these errors were encountered: