Skip to content

Instantly share code, notes, and snippets.

@usergenic
Created December 19, 2018 19:53
Show Gist options
  • Save usergenic/660736eea4bda3b2efeb3c6c2627a6e6 to your computer and use it in GitHub Desktop.
Save usergenic/660736eea4bda3b2efeb3c6c2627a6e6 to your computer and use it in GitHub Desktop.
<script type=module src=module-file.js></script>
export const Potato = '🥔';
console.alert(Potato);
$ polymer-bundler html-file.html --inline-scripts
<script type="module" src="module-file.js"></script>
$ polymer-bundler html-file.html --inline-scripts
<script type="module">
const Potato = '🥔';
console.alert(Potato);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment