Files
open-wc/packages/es-dev-server/test/snapshots/transform-index-html/inline-module-auto.html
2019-11-19 08:59:12 +01:00

39 lines
623 B
HTML

<html>
<head>
<title>My app</title>
</head>
<body>
<script type="module">
import { message } from 'my-module';
import './src/local-module.js';
console.log(`The message is: ${message}`);
// class is compiled by legacy build
class Foo {
}
// class is compiled by legacy build
const bar = 'buz';
async function* asyncGenerator() {
await Promise.resolve();
yield 0;
await Promise.resolve();
yield 1;
}
</script>
<script type="module">
console.log('hello world');
</script>
<script type="module" src="./app.js"></script>
</body>
</html>