JS text imports landed in Firefox 153, making it the first browser to support this feature. Here's how it works:
8 reposts98 likes
JS text imports landed in Firefox 153, making it the first browser to support this feature. Here's how it works:
8 reposts98 likes
It's not the same functionality as "with" blocks, just re-uses the word. It's not that unusual: 'default' is used in switch statements and in exports for different things. The 'in' operator is different to what 'in' means in a for loop. 'from' in import statements is different to Array.from etc etc.
It's at Stage 2.7 github.com/tc39/proposa..., but yeah it depends on immutable arraybuffers which is also at 2.7.