chromium/chrome/test/data/worker_import_module.html

<!DOCTYPE html>
<title></title>
<script>
const script_url = 'worker_import_module_worker.js';
const worker = new Worker(script_url, { type: 'module' });
worker.onmessage = (event) => {
  document.title = event.data;
};
</script>