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

Feature request regarding COR/local use of Transcrypt files in combination with pywebview #824

Open
baschni opened this issue May 3, 2022 · 0 comments

Comments

@baschni
Copy link

baschni commented May 3, 2022

Hello,

if I am correct you cannot use Transcrypt generated JS files embedded in a local html file by directly opening this file in a local browser as javascript modules are only allowed to be embedded through http/https?

I would like to use Transcrypt locally in combination with pywebview to create user interfaces to python programs just with HTML and javascript. Pywebview opens a browsing window and allows communication with a python script to the java script in this browsing window.

As I like this approach and I see no need to start a server on the local machine with pywebview, is it possible to tell transcrypt just to put out non modularized java script code? Would that be a new feature? Or would I have to replace all the "export"-statements in the Javascript file manually and would it still work then?

Kind regards
Bastian

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

1 participant