Skip to content

Commit

Permalink
Fix the error when importing TypeScript files in Svelte files.
Browse files Browse the repository at this point in the history
  • Loading branch information
kissge committed Feb 19, 2022
1 parent 8d350b6 commit 95a7a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setupTypeScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ rollupConfig = rollupConfig.replace(
// Add TypeScript
rollupConfig = rollupConfig.replace(
'commonjs(),',
'commonjs(),\n\t\ttypescript({\n\t\t\tsourceMap: !production,\n\t\t\tinlineSources: !production\n\t\t}),'
'commonjs(),\n\t\ttypescript({\n\t\t\tsourceMap: !production,\n\t\t\tinlineSources: !production,\n\t\t\trootDir: "./src"\n\t\t}),'
);
fs.writeFileSync(rollupConfigPath, rollupConfig)

Expand Down

0 comments on commit 95a7a73

Please sign in to comment.