-
+
+
{% block site_nav %} @@ -443,7 +443,10 @@ diff --git a/tsconfig.json b/tsconfig.json index 78943fa0b..87717a4a3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "declarationMap": false, "downlevelIteration": true, "jsx": "react", - "jsxFactory": "jsx.h", + "jsxFactory": "h", "lib": [ "dom", "es2017", diff --git a/webpack.config.ts b/webpack.config.ts index b018714c8..437887e10 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -21,7 +21,7 @@ */ import * as path from "path" -import { Configuration, ProvidePlugin } from "webpack" +import { Configuration } from "webpack" /* ---------------------------------------------------------------------------- * Helper functions @@ -58,6 +58,12 @@ function config(args: Configuration): Configuration { } ], exclude: /\/node_modules\// + }, + + /* Preact is only used for its great JSX typings */ + { + test: /\bpreact\b/, + use: "null-loader" } ] }, @@ -98,12 +104,7 @@ export default (_env: never, args: Configuration): Configuration[] => ([ path: path.resolve(__dirname, "material/assets/javascripts"), filename: "bundle.js", libraryTarget: "window" - }, - plugins: [ - new ProvidePlugin({ - jsx: "src/assets/javascripts/extensions/jsx" - }) - ] + } }, /* Search worker */