-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use class
instead of lang
attribute and fix minified build
#6
Conversation
Fix minified build Update dependencies
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.
Why class
instead of lang
?
I've picked lang
because it is unique and so can be easily associated with the code block.
class
is ambiguous.
If you need to use a different attribute, you can change that in your renderer.
smd_min_entry.js
Outdated
// Renderer | ||
default_renderer, | ||
logger_renderer, |
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.
The whole point of the min entry is to not include the example renderers.
They exist for starting point during development by "having something on the screen" before you go and make your own.
Normal entry you use with a bundler that will tree-shake them.
The min entry is usable from a cdn and should only have whats necessary.
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.
Alright, not exposing the logger_renderer
then.
If |
The |
Actually, I'm stupid in what I said in #6 (comment). The |
Friendly ping on this PR. Is this something you're considering? Thanks! |
Right.. yes. |
Please see the current version of the PR, moved I think exporting the |
class
instead oflang
attribute