We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c041c22 commit 09ba5eeCopy full SHA for 09ba5ee
templates/rescript-template-nextjs/next.config.mjs
@@ -2,7 +2,10 @@ import fs from "fs";
2
import path from "path";
3
4
const rescript = JSON.parse(fs.readFileSync("./rescript.json"));
5
-const transpileModules = ["rescript"].concat(rescript["bs-dependencies"]);
+
6
+const transpilePackages = ["rescript"]
7
+ .concat(rescript["bs-dependencies"] ?? [])
8
+ .concat(rescript["dependencies"] ?? []);
9
10
const config = {
11
pageExtensions: ["jsx", "js"],
@@ -44,6 +47,6 @@ const config = {
44
47
};
45
48
46
49
export default {
- transpilePackages: transpileModules,
50
+ transpilePackages,
51
...config,
52
0 commit comments