How to use es 6 modules in VanillaJS?

for instance :


<body>


<h1 id="h1"> hello world</h1>

<script src="2.js" type="module" ></script>

</body>

my 2 file:
import x from ‘./1’

x();

1 file:

import x from ‘./1’

x();

Thanks in advance.