Skip to content

Commit b0a96a4

Browse files
committed
update to newest engine
1 parent fa19b5b commit b0a96a4

File tree

3 files changed

+54
-17
lines changed

3 files changed

+54
-17
lines changed

next.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { createSWCPlugin } from "@codepress/codepress-engine/swc";
2+
import CodePressWebpackPlugin from "@codepress/codepress-engine/webpack-plugin";
23
import type { NextConfig } from "next";
34

45
const nextConfig: NextConfig = {
@@ -13,8 +14,9 @@ const nextConfig: NextConfig = {
1314
}),
1415
],
1516
},
16-
webpack: (config) => {
17+
webpack: (config, { isServer, dev }) => {
1718
config.resolve.conditionNames = ["import", "module", "default"];
19+
config.plugins.push(new CodePressWebpackPlugin({ isServer, dev }));
1820
return config;
1921
},
2022
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@quantfive/codepress-browser-extension": "^0.6.0",
13-
"@codepress/codepress-engine": "^0.4.1",
13+
"@codepress/codepress-engine": "^0.8.0",
1414
"@radix-ui/react-accordion": "^1.2.12",
1515
"@radix-ui/react-dialog": "^1.1.15",
1616
"@radix-ui/react-label": "^2.1.7",

pnpm-lock.yaml

Lines changed: 50 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)