add tsx support
This commit is contained in:
@@ -107,7 +107,7 @@ export default allFiles
|
||||
// If need ES5 support enable following configs
|
||||
// .concat(
|
||||
// allFiles
|
||||
// .map(e => e.replace('.ts', ''))
|
||||
// .map(e => e.replace(/.tsx*/, ''))
|
||||
// .map(bundle => {
|
||||
// return {
|
||||
// input: `build/${bundle}.js`,
|
||||
|
@@ -8,8 +8,8 @@
|
||||
// "allowJs": true, /* Allow javascript files to be compiled. */
|
||||
// "checkJs": true, /* Report errors in .js files. */
|
||||
"jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
||||
"jsxFactory": "JSX.createElement",
|
||||
"jsxFragmentFactory": "JSX.Fragment",
|
||||
"jsxFactory": "jsx.createElement",
|
||||
"jsxFragmentFactory": "jsx.Fragment",
|
||||
// "declaration": true, /* Generates corresponding '.d.ts' file. */
|
||||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
||||
"sourceMap": true, /* Generates corresponding '.map' file. */
|
||||
|
@@ -7,7 +7,9 @@
|
||||
"lib": [], /* Specify library files to be included in the compilation. */
|
||||
// "allowJs": true, /* Allow javascript files to be compiled. */
|
||||
// "checkJs": true, /* Report errors in .js files. */
|
||||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
||||
"jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
||||
"jsxFactory": "jsx.createElement",
|
||||
"jsxFragmentFactory": "jsx.Fragment",
|
||||
// "declaration": true, /* Generates corresponding '.d.ts' file. */
|
||||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
||||
"sourceMap": true, /* Generates corresponding '.map' file. */
|
||||
|
Reference in New Issue
Block a user