You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
traditional bundler tooling like rollup will ignore/tolerate the .js extensions
typescript itself also ignores/tolerates the .js extensions
webnative browser imports require the .js extensions
therefore, to best serve everybody, it's best to include the .js extensions across the board
note, you don't add the extensions to bare-specifiers like "lit-element" -- to be clear:
// correct to omit extensionimport{LitElement}from"lit-element"// correct to use extensionimport{UpdatingElement}from"lit-element/lib/updating-element.js"
cheers, looking forward to using and evangelising these components wherever i can!
👋😎 chase
The text was updated successfully, but these errors were encountered:
hello!
i found this library recently, and it's really great work!
i noticed that when i inspect something like dialog.js: https://unpkg.com/browse/[email protected]/presenters/dialog/dialog.js
i find imports like these:
however when a modern browser attempts to import a file which has imports like these, it will fail
to fix the issue and make the library more compatible with cutting-edge workflows, please add the
.js
extensions, like so.js
extensions.js
extensions.js
extensions.js
extensions across the boardnote, you don't add the extensions to bare-specifiers like "lit-element" -- to be clear:
cheers, looking forward to using and evangelising these components wherever i can!
👋😎 chase
The text was updated successfully, but these errors were encountered: