Skip to content

Commit

Permalink
fix(cli): add "allowjs": true to tsconfig.json fix #1332 (#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
doabit authored and yuche committed Dec 3, 2018
1 parent 68b24f2 commit 4bae06f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/taro-cli/templates/default/tsconfigjson
Expand Up @@ -6,7 +6,6 @@
"preserveConstEnums": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"jsxFactory": "Taro.createElement",
"noImplicitAny": false,
"allowSyntheticDefaultImports": true,
"outDir": "lib",
Expand All @@ -18,6 +17,7 @@
"rootDir": ".",
"jsx": "preserve",
"jsxFactory": "Taro.createElement",
"allowJs": true,
"typeRoots": [
"node_modules/@types",
"global.d.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-cli/templates/mobx/tsconfigjson
Expand Up @@ -6,7 +6,6 @@
"preserveConstEnums": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"jsxFactory": "Taro.createElement",
"noImplicitAny": false,
"allowSyntheticDefaultImports": true,
"outDir": "lib",
Expand All @@ -18,6 +17,7 @@
"rootDir": ".",
"jsx": "preserve",
"jsxFactory": "Taro.createElement",
"allowJs": true,
"typeRoots": [
"node_modules/@types",
"global.d.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-cli/templates/redux/tsconfigjson
Expand Up @@ -6,7 +6,6 @@
"preserveConstEnums": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"jsxFactory": "Taro.createElement",
"noImplicitAny": false,
"allowSyntheticDefaultImports": true,
"outDir": "lib",
Expand All @@ -18,6 +17,7 @@
"rootDir": ".",
"jsx": "preserve",
"jsxFactory": "Taro.createElement",
"allowJs": true,
"typeRoots": [
"node_modules/@types"
]
Expand Down

0 comments on commit 4bae06f

Please sign in to comment.