svelte-typescript-subst-issue

Svelte Typescript Subst Issue

A reproduction of an issue in the compilation of a Sapper/Svelte app using rollup in a subst'd context.

Steps to reproduce on Windows

  • subst a directory and clone this repository into it.
  • From the subst'd drive letter, build and run the project, e.g.
D:\> npm i
D:\> npm run dev
# or
D:\> npm run build
D:\> npm start
  • Build should fail:
    Unexpected token (Note that you need plugins to import files that are not JavaScript)
    1: function test(name: string) {
                      ^
    2:     console.log('Hello,', name);
    3: }
    

Top categories

Loading Svelte Themes