Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<script type="module"> is also javascript context #220

Merged
merged 1 commit into from Mar 24, 2020
Merged

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 Mar 24, 2020
@dg
Copy link
Member

@dg 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
1 check passed
@iiic iiic deleted the patch-2 branch Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants