The import "function" is stupid. It's not really a function. It doesn't exist as a global. You can't prevent it from being called. It's damn stupid.
-
-
Replying to @garethheyes
How would you have designed it? Note that the behavior of import('./foo.mjs') must depend on where it’s called from. +
@domenic@jaffathecake@DasSurma3 replies 0 retweets 2 likes -
Replying to @mathias @garethheyes and
We talked about why it isn't a real function in https://youtu.be/mo8thg5XGV0 . But yeah, I agree with
@mathias, what's the other way?0 replies 0 retweets 3 likes
Replying to @jdalton @jaffathecake and
All imports are now relative to where `mport` is defined. s/mport/import/g is not equivalent, and with your code example that’s explicitly clear.
12:09 PM - 6 Apr 2018
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.