Simplified JavaScript Imports

Learn how to use Parcel while working with Transcrypt.

Configuring Parcel

We do need to make one small change to our HTML file. Since our entire application will be compiled and bundled as a single resource, we want the application entry point to be our HTML file. So rather than directly specifying the entry point as our Python code, the Python files will get pulled in from the HTML file instead.

So let’s make that small change by indicating our source Python file instead of the generated JavaScript file:

Lines 4 to 7 in react_hello4.html is changed to the following line:

Get hands-on with 1400+ tech skills courses.