Skip to content

Commit 1861135

Browse files
fix: code
1 parent 6aec0cc commit 1861135

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export { default } from "strip-ansi";
1+
import stripAnsi from "strip-ansi";
2+
3+
export default stripAnsi;

client-src/webpack.config.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,25 @@ const path = require("path");
44
const webpack = require("webpack");
55
const { merge } = require("webpack-merge");
66

7+
const library = webpack.webpack
8+
? {
9+
library: {
10+
// type: "module",
11+
type: "commonjs",
12+
},
13+
}
14+
: { libraryTarget: "commonjs", libraryExport: "default" };
15+
716
const baseForModules = {
817
devtool: false,
9-
mode: "production",
18+
mode: "development",
1019
// TODO enable this in future after fix bug with `eval` in webpack
1120
// experiments: {
1221
// outputModule: true,
1322
// },
1423
output: {
1524
path: path.resolve(__dirname, "../client/modules"),
16-
library: {
17-
// type: "module",
18-
type: "commonjs",
19-
},
25+
...library,
2026
},
2127
optimization: {
2228
minimize: false,

0 commit comments

Comments
 (0)