Updates : now works, see config, had to add " include: ["../../**/*.ts+(|x)"],"
In this monorepo (Turborepo), within Vite-Sveltekit projects that do not use EsBuild in the vite config :
Parse failure: Unexpected token (3:26)
At file: /@fs/TurboSvelteKitTypia/packages/common/log.ts
Contents of line 3: export const messageLoaded: string =
If I remove TS syntax from the TS file it works again. It seems the file is imported as JS
The file that loads the other files is TurboSvelteKitTypia\apps\SvelteKitTS\src\routes+page.svelte
Tried :
rollup-plugin-typescript2
plugin before the sveltekit
plugin in the vite.config.ts
, it didn't work.ts
at the end of the import, no effect.ts
at the end of the import, no effect (https://github.com/vitejs/vite/issues/5370#issuecomment-1339022262)sourceMap: false,
in the rollup-plugin-typescript2
plugin config, no effect (in tsconfig.json
it does suppress a warning)allowImportingTsExtensions: true
in the rollup-plugin-typescript2
plugin config & tsconfig, no effect (https://github.com/samchon/typia/issues/812#issuecomment-1738303267)tspCompiler
in the rollup-plugin-typescript2
plugin config, no effect (https://github.com/samchon/typia/issues/812#issuecomment-1738348716)Tried solutions proposed in :
pnpm add turbo --global
pnpm install
pnpm workspace with typia & TS imports :
npx ts-node packages/typiaLib/run.ts
pnpm workspace lib that imports typia :
npx ts-node packages/typia-imported/run-import
sveltekit in workspace with typia lib that imports only JS files :
npx ts-node packages/typia-imported/run-import
Dev
npx turbo run dev --filter=SvelteKitJS
Dev
npx turbo run dev --filter=SvelteKitTS
Build
npx turbo run build --filter=SvelteKitTS
sveltekit in workspace with typia lib that imports TS files :
npx ts-node packages/typia-imported/run-import