Expect to be able to import module into project, build project with webpack and babel without issues.
Actual behaviour
Get warning and errors. These are the errors I got after installing from npm. I was getting different errors related to webpack trying to resolve babel modules inside the lb-f directory when it was installed from local directory.
WARNING in ../node_modules/@std/esm/index.js
35:11-18 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
ERROR in ../node_modules/@std/esm/index.js
Module not found: Error: Can't resolve 'fs' in '/mnt/c/dev/kwubl/node_modules/@std/esm'
Steps to re-produce issue
I'll work on creating a minimal case project to demonstrate the issue.
Additional information
What seems to be happening is Webpack not playing nicely with esm. Some quick perusals of esm shows hints of workarounds, but all the potential fixes I've seen so far assume that esm is a direct dependency of the project using webpack. Webpack is a big deal. If this module cannot be consumed by a project using webpack it should be considered broken.
Summary of issue
Cannot consume module with webpack+babel.
Expected behaviour
Expect to be able to import module into project, build project with webpack and babel without issues.
Actual behaviour
Get warning and errors. These are the errors I got after installing from
npm
. I was getting different errors related towebpack
trying to resolvebabel
modules inside thelb-f
directory when it was installed from local directory.Steps to re-produce issue
I'll work on creating a minimal case project to demonstrate the issue.
Additional information
What seems to be happening is Webpack not playing nicely with
esm
. Some quick perusals ofesm
shows hints of workarounds, but all the potential fixes I've seen so far assume thatesm
is a direct dependency of the project usingwebpack
. Webpack is a big deal. If this module cannot be consumed by a project usingwebpack
it should be considered broken.