The adjacent file is identical to the one provided by the Svelte 3.x library (3.46.x-ish) with the following distinctions:
- I updated the config with a little help from the docs to create a separate bundle for each .ts file in the src/ directory.
- I ran the provided script that adds TypeScript support.
- I updated the output.file property to point to the build directory in the parent (this is nested in a bigger Gradle project).
Note that you'll still need to create a separate .ts file (analogous to the initial main.ts
) for each bundle.
Hope someone finds this useful.