ensure <script type=module> always uses es6