-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat: 🎸 ESM Loading. Remove System JS. IE Support. CSS Hydration Fixes. Naming Conflict fixes. Robust support for plugins. #42
Conversation
Very curious about this feature. Just putting some findings here first, without having looked at the code:
When I run a So quick first verdict would be that this should make it in :) Maybe without the |
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.
Complex stuff. Great that you're digging into this. I can't think of a simpler solution. So for now, just left some small comments.
I do really enjoy seeing the module/nomodule script mechanism at work. As I think it's a really lean solution for wide browser support.
Codecov Report
@@ Coverage Diff @@
## master #42 +/- ##
==========================================
+ Coverage 92.65% 93.39% +0.74%
==========================================
Files 32 38 +6
Lines 1198 1333 +135
Branches 253 278 +25
==========================================
+ Hits 1110 1245 +135
+ Misses 88 86 -2
- Partials 0 2 +2
Continue to review full report at Codecov.
|
@halafi @jbmoelker @decrek I think this is ready to merge in and release. 👍 Filip, we could use some tests for some of the new features/improvements when you have downtime. |
@nickreese this PR is a little hard for me to review given it's size. Have you considered rebasing against |
@thisislawatts I’ll need to google rebase. 👀 This started as a refactor for ESM/ie11 bundles which deeply changed our rollup configs. Then I wanted to fix the CSS issues as it was closely ties with the rollup configs. The problem was that the string kept going as the only way to pull off the CSS implementation was to make sure there weren’t component name shadowing and even a deeper refactor of the rollup configs. I’ll look at rebase. This is tested against the template and 2 production projects so I’m confident in the fact the code works. Just mainly realize that more eyes are better than fewer but overall I think it is ready to merge. |
This add the ability to split components to dev which will speed up local dev but breaks stores.
Usage:
Also got a working module/nomodule setup built using
iife
s that doesn't break the Elder.js apis.Testing
To test this:
npm install && npm link
npx degit Elderjs/template elderjs-app
cd elderjs-app
@elderjs/elderjs
entry in thepackage.json
to befile:../relative/path/here/
and then typenpm install
.npm run build
Notes: