Closed ghost closed 6 years ago
Related to #418 & #298.
Confirmed the issue is with the main
and module
pointing to files in sub-folders. I added an index file in the root folder that just re-exports the file from the sub-folder and updated the module
to point to the root file and it worked.
Closing as #418 & #298 have been resolved.
Parcel Bundler: 1.4.1 Node: 8.9.3 OS: Windows 10 HyperHTML: 2.4.3
HyperHTML builds different module types into sub-folders (e.g. /esm /cjs). It differentiates for bundlers using the standard keys
main
andmodule
in package.json.Importing from the package root is not working with parcel. Parcel does not throw an error, but when running the code, the import
hyper
reference is an empty object.To import using parcel requires including the sub-folder in the import:
I think that parcel should support the
main
andmodule
keys.