Skip to content

Commit 93a08d4

Browse files
committed
Add example preact.config.js
1 parent faee60f commit 93a08d4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/preact.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)