File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1
- export { default } from "strip-ansi" ;
1
+ import stripAnsi from "strip-ansi" ;
2
+
3
+ export default stripAnsi ;
Original file line number Diff line number Diff line change @@ -4,19 +4,25 @@ const path = require("path");
4
4
const webpack = require ( "webpack" ) ;
5
5
const { merge } = require ( "webpack-merge" ) ;
6
6
7
+ const library = webpack . webpack
8
+ ? {
9
+ library : {
10
+ // type: "module",
11
+ type : "commonjs" ,
12
+ } ,
13
+ }
14
+ : { libraryTarget : "commonjs" , libraryExport : "default" } ;
15
+
7
16
const baseForModules = {
8
17
devtool : false ,
9
- mode : "production " ,
18
+ mode : "development " ,
10
19
// TODO enable this in future after fix bug with `eval` in webpack
11
20
// experiments: {
12
21
// outputModule: true,
13
22
// },
14
23
output : {
15
24
path : path . resolve ( __dirname , "../client/modules" ) ,
16
- library : {
17
- // type: "module",
18
- type : "commonjs" ,
19
- } ,
25
+ ...library ,
20
26
} ,
21
27
optimization : {
22
28
minimize : false ,
You can’t perform that action at this time.
0 commit comments