Browse Source

update tsconfig.json

JonStargaryen 4 years ago
parent
commit
9c4e8c3c07

+ 0 - 1
src/viewer/ui/controls.tsx

@@ -4,7 +4,6 @@
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  */
 
-import * as React from 'react';
 import { PluginUIComponent } from 'molstar/lib/mol-plugin-ui/base';
 import { ViewerState } from '../types';
 import { CustomStructureControls } from 'molstar/lib/mol-plugin-ui/controls';

+ 0 - 1
src/viewer/ui/export.tsx

@@ -1,4 +1,3 @@
-import * as React from 'react';
 import { CollapsableControls, CollapsableState, PluginUIComponent } from 'molstar/lib/mol-plugin-ui/base';
 import { Button } from 'molstar/lib/mol-plugin-ui/controls/common';
 import { GetAppSvg } from 'molstar/lib/mol-plugin-ui/controls/icons';

+ 0 - 1
src/viewer/ui/import.tsx

@@ -4,7 +4,6 @@
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  */
 
-import * as React from 'react';
 import { StateTransform } from 'molstar/lib/mol-state';
 import { OpenFiles } from 'molstar/lib/mol-plugin-state/actions/file';
 import { DownloadStructure } from 'molstar/lib/mol-plugin-state/actions/structure';

+ 0 - 1
src/viewer/ui/session.tsx

@@ -4,7 +4,6 @@
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
  */
 
-import * as React from 'react';
 import { CollapsableControls } from 'molstar/lib/mol-plugin-ui/base';
 import { LocalStateSnapshots, LocalStateSnapshotList, StateExportImportControls } from 'molstar/lib/mol-plugin-ui/state/snapshots';
 import { SaveOutlinedSvg } from 'molstar/lib/mol-plugin-ui/controls/icons';

+ 0 - 1
src/viewer/ui/strucmotif.tsx

@@ -4,7 +4,6 @@
  * @author Sebastian Bittrich <sebastian.bittrich@rcsb.org>
  */
 
-import * as React from 'react';
 import { CollapsableControls, PurePluginUIComponent } from 'molstar/lib/mol-plugin-ui/base';
 import { Button, IconButton, ToggleButton } from 'molstar/lib/mol-plugin-ui/controls/common';
 import {

+ 5 - 2
tsconfig.json

@@ -1,5 +1,6 @@
 {
     "compilerOptions": {
+        "declaration": true,
         "target": "es5",
         "alwaysStrict": true,
         "noImplicitAny": true,
@@ -9,13 +10,15 @@
         "strictNullChecks": true,
         "strictFunctionTypes": true,
         // "downlevelIteration": true,
+        "module": "esnext",
+        "esModuleInterop": true,
+        "moduleResolution": "node",
         "importHelpers": true,
         "noEmitHelpers": true,
-        "jsx": "react",
+        "jsx": "react-jsx",
         "lib": [ "es6", "dom", "esnext.asynciterable", "es2016" ],
         "outDir": "build/src",
         "rootDir": "src",
-        "declaration": true
     },
     "include": [ "src/**/*" ]
 }