Skip to content

Conversation

@iiic
Copy link
Contributor

@iiic iiic commented Mar 20, 2020

<script type="module">//…</script> would by also be Javascript context ( Compiler::CONTEXT_HTML_JS )

attribute type="module" on script elementy is necessary for using dynamic javascript import ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import )

<script type="module">//…</script> would by also be Javascript context ( Compiler::CONTEXT_HTML_JS ) attribute type="module" on script elementy is necessary for using dynamic javascript import ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import )
@dg dg force-pushed the master branch 2 times, most recently from 84a9e5a to e791739 Compare March 24, 2020 21:18
@dg
Copy link
Member

dg commented Mar 24, 2020

Thanks

@dg dg changed the title element script with type="module" is also javascript context <script type="module"> is also javascript context Mar 24, 2020
@dg dg merged commit f95a306 into nette:master Mar 24, 2020
@iiic iiic deleted the patch-2 branch March 24, 2020 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants