Add es module#7
Conversation
| @@ -0,0 +1,35 @@ | |||
| import assert from 'www.unpkg.com/nanoassert?module' | |||
There was a problem hiding this comment.
I think this needs a protocol?
There was a problem hiding this comment.
Something like this?
import assert from 'https://www.unpkg.com/nanoassert?module'There was a problem hiding this comment.
yea. actually, doesn't unpkg automatically rewrite import paths when you use ?module? just doing import assert from 'nanoassert' might just work already.
There was a problem hiding this comment.
It doesn't .Something like https://unpkg.com/md?module get resolved to https://unpkg.com/md@0.6.0/dist/md.es.js?module which is the actual version plus whatever you defined in your module property in package.json
There was a problem hiding this comment.
There was a problem hiding this comment.
Oh, you mean when already published? Actually never tried that, it would be much cleaner.
|
@yoshuawuyts @goto-bus-stop Thanks for your comments. |

No description provided.