@polylith/builder 0.2.26 → 0.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/App.js +18 -3
  2. package/package.json +3 -3
package/App.js CHANGED
@@ -129,11 +129,20 @@ export default class App {
129
129
  await router(express, appRouter, this);
130
130
  return true;
131
131
  } catch(e) {
132
- console.error(cc.set('fg_red;, error while building router'), this.modulePath);
133
- console.log(e);
132
+ console.error(cc.set('fg_red', 'error while building router'), this.modulePath);
133
+ console.error(e);
134
+ console.error(e.stack);
134
135
  }
135
136
  }
136
137
 
138
+ async getSocketIo() {
139
+ return this.socketIo;
140
+ }
141
+
142
+ async setSocketIo(io) {
143
+ this.socketIo = io;
144
+ }
145
+
137
146
  getIndexFile() {
138
147
  return path.posix.join(this.root, this.htmlTemplate.destination);
139
148
  }
@@ -381,7 +390,7 @@ export default class App {
381
390
  if (this.manualChunkType != type) {
382
391
  console.warn(`addManualChunk of type ${type} will override previously set of type ${this.manualChunkType}`);
383
392
  if (type === 'object') this.manualChunks = {}
384
- else this.manualChunks === [];
393
+ else this.manualChunks = [];
385
394
  this.manualChunkType = type;
386
395
  }
387
396
 
@@ -764,6 +773,12 @@ export default class App {
764
773
  input : {
765
774
  input: input,
766
775
  plugins: plugins,
776
+ onwarn(warning, warn) {
777
+ if (warning.code === 'MODULE_LEVEL_DIRECTIVE') {
778
+ return
779
+ }
780
+ warn(warning)
781
+ },
767
782
  },
768
783
  output : {
769
784
  output : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polylith/builder",
3
- "version": "0.2.26",
3
+ "version": "0.2.28",
4
4
  "description": "The polylith builder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -17,10 +17,10 @@
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
19
  "@babel/preset-env": "^7.16.11",
20
- "@babel/preset-react": "^7.22.5",
20
+ "@babel/preset-react": "^7.22.15",
21
21
  "@ondohers/console-colors": "^0.1.1",
22
22
  "@polylith/config-store": "0.1.2",
23
- "@polylith/core": "0.1.10",
23
+ "@polylith/core": "0.1.11",
24
24
  "@rollup/plugin-babel": "^5.3.0",
25
25
  "@rollup/plugin-commonjs": "^24.0.0",
26
26
  "@rollup/plugin-json": "^5.0.2",