@nebula.js/cli-build 4.5.0-alpha.0 → 4.6.0

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.
package/lib/config.js CHANGED
@@ -115,6 +115,13 @@ const config = ({
115
115
 
116
116
  return {
117
117
  input: {
118
+ onwarn(warning, warn) {
119
+ // Supress "use client" warnings coming from MUI bundling
120
+ if (warning.code === 'MODULE_LEVEL_DIRECTIVE' && warning.message.includes(`"use client"`)) {
121
+ return;
122
+ }
123
+ warn(warning);
124
+ },
118
125
  input: path.resolve(CWD, 'src/index'),
119
126
  external,
120
127
  plugins: [
package/lib/watch.js CHANGED
@@ -67,10 +67,16 @@ const watch = async (argv) => {
67
67
 
68
68
  const watcher = rollup.watch({
69
69
  ...c.input,
70
- onwarn({ loc, message }) {
70
+ onwarn({ loc, message, code }) {
71
71
  if (!hasWarnings) {
72
72
  clearScreen();
73
73
  }
74
+
75
+ // Supress "use client" warnings coming from MUI bundling
76
+ if (code === 'MODULE_LEVEL_DIRECTIVE' && message.includes(`"use client"`)) {
77
+ return;
78
+ }
79
+
74
80
  console.log(
75
81
  `${chalk.black.bgYellow(' WARN ')} ${chalk.yellow(
76
82
  loc ? `${loc.file} (${loc.line}:${loc.column}) ${message}` : message
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebula.js/cli-build",
3
- "version": "4.5.0-alpha.0",
3
+ "version": "4.6.0",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "QlikTech International AB",
@@ -21,28 +21,28 @@
21
21
  "lint": "eslint src"
22
22
  },
23
23
  "dependencies": {
24
- "@babel/cli": "7.22.10",
25
- "@babel/core": "7.22.11",
26
- "@babel/plugin-transform-react-jsx": "7.22.5",
27
- "@babel/preset-env": "7.22.10",
28
- "@rollup/plugin-babel": "6.0.3",
29
- "@rollup/plugin-commonjs": "25.0.4",
30
- "@rollup/plugin-json": "6.0.0",
31
- "@rollup/plugin-node-resolve": "15.2.1",
32
- "@rollup/plugin-replace": "5.0.2",
33
- "@rollup/plugin-terser": "0.4.3",
24
+ "@babel/cli": "7.23.0",
25
+ "@babel/core": "7.23.2",
26
+ "@babel/plugin-transform-react-jsx": "7.22.15",
27
+ "@babel/preset-env": "7.23.2",
28
+ "@rollup/plugin-babel": "6.0.4",
29
+ "@rollup/plugin-commonjs": "25.0.7",
30
+ "@rollup/plugin-json": "6.0.1",
31
+ "@rollup/plugin-node-resolve": "15.2.3",
32
+ "@rollup/plugin-replace": "5.0.4",
33
+ "@rollup/plugin-terser": "0.4.4",
34
34
  "chalk": "4.1.2",
35
35
  "extend": "3.0.2",
36
- "postcss": "^8.4.28",
37
- "rollup": "3.28.1",
36
+ "postcss": "^8.4.31",
37
+ "rollup": "4.1.4",
38
38
  "rollup-plugin-postcss": "4.0.2",
39
39
  "rollup-plugin-sourcemaps": "0.6.3",
40
40
  "yargs": "17.7.2"
41
41
  },
42
42
  "devDependencies": {
43
- "@rollup/plugin-typescript": "11.1.3",
43
+ "@rollup/plugin-typescript": "11.1.5",
44
44
  "tslib": "*",
45
45
  "typescript": ">=5.2.2"
46
46
  },
47
- "gitHead": "437c460e03261110f542f4027777f8d3726cfa1f"
47
+ "gitHead": "24c970b1a981ca65ad7ebbad64a0c718e379f134"
48
48
  }