Skip to content

Commit 7b60f55

Browse files
authored
Add Parcel tsconfig.json settings (codesandbox#909)
1 parent faf456e commit 7b60f55

File tree

1 file changed

+15
-0
lines changed
  • packages/common/templates/configuration/tsconfig

1 file changed

+15
-0
lines changed

packages/common/templates/configuration/tsconfig/index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,21 @@ const config: ConfigurationFile = {
4444
);
4545
}
4646

47+
if (template === 'parcel') {
48+
return JSON.stringify({
49+
compilerOptions: {
50+
module: 'commonjs',
51+
jsx: 'preserve',
52+
esModuleInterop: true,
53+
sourceMap: true,
54+
allowJs: true,
55+
lib: ['es6', 'dom'],
56+
rootDir: 'src',
57+
moduleResolution: 'node',
58+
},
59+
});
60+
}
61+
4762
return JSON.stringify(
4863
{
4964
compilerOptions: {

0 commit comments

Comments
 (0)