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

examples don't work anymore with Transcrypt 3.7 #2

Closed
mjmare opened this issue Nov 11, 2018 · 2 comments
Closed

examples don't work anymore with Transcrypt 3.7 #2

mjmare opened this issue Nov 11, 2018 · 2 comments

Comments

@mjmare
Copy link

mjmare commented Nov 11, 2018

I was happy to find this set of simple examples. Thank you for this.

However, it seems that Transcrypt (3.7.11) has changed its way of including the compiled javascript. It currently generates files in static instead of javascript and it currently it uses constructs like these:

<script type="module">import * as hello from './__target__/hello.js'; window.hello = hello;</script>

instead of:

<script language="javascript" src="__javascript__/hello.js"></script>
@bunkahle
Copy link
Owner

bunkahle commented Mar 3, 2019

yes thank you for the remark. I already updated the README.md file on that and for the time being I would recommend to stay with Transcrypt 3.6 ( pip install transcrypt==3.6 ) since it is has a wider compatibility with browsers as hinted at: TranscryptOrg/Transcrypt#611

But of course you can also go with transcrypt 3.7, just change the script line as you have stated above.

@mjmare
Copy link
Author

mjmare commented Mar 3, 2019

OK will do. Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants