Øyvind Saltvik
Øyvind Saltvik
Should be doable. A good way to understand how this should work is: https://webpack.js.org/guides/author-libraries/ . If someone tries to implement this I am all for it 😀
If you want to try hacking on this, I have a workflow: ```bash npm install -g yalc git clone https://github.com/jaredpalmer/razzle.git cd razzle git checkout -B canary NODE_ENV=development yarn install ---ignore-engines...
Been thinking about this and this would be awesome in monorepos. Maybe even develop component libraries with a example that reload when you edit the library live.
Maybe make buildType have library-esm library-amd library-cjs, and allow mixing like library-esm-amd-cjs
Not sure if this is a good idea. I see other projects doing libraries better, like tsdx. Could do it here for es6 but not for ts since typings is...
Try https://razzlejs.org/docs/customization#transpilation-of-external-modules first, report any errors :)
Recharts module and main in package.json has no extensions Might be it..
I think the lack of extensions makes externals fail somehow
See https://github.com/jaredpalmer/razzle/issues/1802
The error comes from node itself when running server.js so the location is actually server.js