diff --git a/config/tsconfig-for-webpack-config.json b/config/tsconfig-for-webpack-config.json index e8b38fa6c..241a9f28c 100644 --- a/config/tsconfig-for-webpack-config.json +++ b/config/tsconfig-for-webpack-config.json @@ -7,6 +7,7 @@ "noLib": false, "moduleResolution": "node", "skipLibCheck": true, + "esModuleInterop": true, "lib": [ "esnext", ], diff --git a/config/webpack.dev.ts b/config/webpack.dev.ts index f76fda2ab..27e315ed3 100644 --- a/config/webpack.dev.ts +++ b/config/webpack.dev.ts @@ -1,8 +1,8 @@ import * as webpack from 'webpack'; -import * as merge from 'webpack-merge'; +import merge from 'webpack-merge'; import { outputDir } from './outputPath'; import common from './webpack.common'; -import * as AddAssetHtmlPlugin from "add-asset-html-webpack-plugin"; +import AddAssetHtmlPlugin from "add-asset-html-webpack-plugin"; const config: webpack.Configuration = merge( common, diff --git a/src/UI/Layout/MaterialEditorLayout.tsx b/src/UI/Layout/MaterialEditorLayout.tsx index 839f1a51f..68ba97e89 100644 --- a/src/UI/Layout/MaterialEditorLayout.tsx +++ b/src/UI/Layout/MaterialEditorLayout.tsx @@ -1,4 +1,4 @@ -import * as GoldenLayout from 'golden-layout'; +import GoldenLayout from 'golden-layout'; import { Provider } from 'mobx-react'; import * as React from 'react'; import * as ReactDOM from 'react-dom';