-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
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
issue 429 javascript module imports #465
issue 429 javascript module imports #465
Conversation
1d23511
to
bb62757
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased and recommitted changes on top of new Resource based plugins API, and have been able to get redux and pwa-helpers working so far.
It looks like for lit-redux-router, I "might" have to make the importMap
generation recursive to handle deps of deps, but so far making OK progress in this minefield that is multiple module formats on NodeJS. 😳
… module specifiers in node modules
Latest status (will be continuously updating this comment) but it's pretty much almost there! Summary
TODO
Thoughts
|
Got a bunch of tests in place now, and synced the docs. Things are feeling pretty solid now. As a side note, I did play around with apollo for a bit, and it definitely seems pretty coupled to React. I think for our data / GraphQL support plugin, we should consider going with an alternative that is more lighter weight and has less tight coupling to anyone particular frontend framework. Thinking we could give urql a try? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good to go! 🎉
* apply npm dependencies using latest Resource plugins changes * fix linting * misc cleanup * recursive project package walking and support for extensionaless bare module specifiers in node modules * refactor acorn module walking to be recursive * recursive support for node modules and got lit-redux-router working * fix packages using process for dead code elimination * comments * comments * make rollup a dependency * refactor shouldServe async and introduce plugin-import-commonjs * plugin refactoring and fixing tests * commonjs working in development * commonjs working for development * refactor optimize to async * commonjs working in develop and prod woohoo * no more empty entry in import map * document cjs-module-lexar work around * add test case for plugin-import-commonjs * test case for importing modules and added redux / .mjs * testing more module types * comment code * add new import-commonjs plugin to table * sync ResourceInterface docs * remove test code * remove commonjs plugin from website config Co-authored-by: Owen Buckley <[email protected]>
* apply npm dependencies using latest Resource plugins changes * fix linting * misc cleanup * recursive project package walking and support for extensionaless bare module specifiers in node modules * refactor acorn module walking to be recursive * recursive support for node modules and got lit-redux-router working * fix packages using process for dead code elimination * comments * comments * make rollup a dependency * refactor shouldServe async and introduce plugin-import-commonjs * plugin refactoring and fixing tests * commonjs working in development * commonjs working for development * refactor optimize to async * commonjs working in develop and prod woohoo * no more empty entry in import map * document cjs-module-lexar work around * add test case for plugin-import-commonjs * test case for importing modules and added redux / .mjs * testing more module types * comment code * add new import-commonjs plugin to table * sync ResourceInterface docs * remove test code * remove commonjs plugin from website config Co-authored-by: Owen Buckley <[email protected]>
Related Issue
#429
Summary
This is a test PR demonstrating the issue related to javascript module imports of unsupported libraries
Problems
lodash
redux - related to a transform path?