Skip to content

Commit

Permalink
Use explicit JS extension for Vite
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Aug 21, 2024
1 parent 9eb90cd commit 225ad60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ If you intend to use the interop with-in JavaScript use the following steps:
1. Copy `Simple.js` and `SimpleExample.js` from the `js` directory to a directory in your skin called `src/interop`.
2. Load the example code and interop in `/src/App.jsx` using `app.loadInterop`:
```js
import "./interop/SimpleExample";
import "./interop/SimpleExample.js";

const simplePath = app.expandString("{moduleAppDirectory}{libraryPrefix}simple.{libraryExtension}");
app.loadInterop("simple", simplePath);
Expand Down

0 comments on commit 225ad60

Please sign in to comment.