3 ms·
JS modules are working in Safari Technology Preview today - so it should be available to everyone soon enough. Pretty simple too, you load your entry point like
by chrisl99 10y ago
JS modules are working in Safari Technology Preview today - so it should be available to everyone soon enough. Pretty simple too, you load your entry point like this -
<script type="module" src="main.js">
And then main.js runs in strict mode, can use "import", etc.