We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faee60f commit 93a08d4Copy full SHA for 93a08d4
src/preact.config.js
@@ -0,0 +1,13 @@
1
+import preactCliTypeScript from "preact-cli-plugin-typescript";
2
+
3
+/**
4
+ * Function that mutates original webpack config.
5
+ * Supports asynchronous changes when promise is returned.
6
+ *
7
+ * @param {object} config original webpack config.
8
+ * @param {object} env options passed to CLI.
9
+ * @param {WebpackConfigHelpers} helpers object with useful helpers when working with config.
10
+ **/
11
+export default function (config, env, helpers) {
12
+ preactCliTypeScript(config);
13
+}
0 commit comments