@nocobase/build 1.9.0-beta.8 → 2.0.0-alpha.2

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/lib/buildPlugin.js +21 -4
  2. package/package.json +2 -2
@@ -78,6 +78,7 @@ const external = [
78
78
  "@nocobase/test",
79
79
  "@nocobase/utils",
80
80
  "@nocobase/license-kit",
81
+ "@nocobase/flow-engine",
81
82
  // @nocobase/auth
82
83
  "jsonwebtoken",
83
84
  // @nocobase/cache
@@ -466,9 +467,17 @@ async function buildPluginClient(cwd, userConfig, sourcemap, log, isCommercial =
466
467
  test: /\.(png|jpe?g|gif)$/i,
467
468
  type: "asset"
468
469
  },
470
+ {
471
+ test: /\.svg$/i,
472
+ type: "asset",
473
+ resourceQuery: { not: [/react/] }
474
+ // exclude react component if *.svg?react
475
+ },
469
476
  {
470
477
  test: /\.svg$/i,
471
478
  issuer: /\.[jt]sx?$/,
479
+ resourceQuery: /react/,
480
+ // *.svg?react
472
481
  use: ["@svgr/webpack"]
473
482
  },
474
483
  {
@@ -509,9 +518,13 @@ async function buildPluginClient(cwd, userConfig, sourcemap, log, isCommercial =
509
518
  jsc: {
510
519
  parser: {
511
520
  syntax: "typescript",
512
- tsx: true
521
+ tsx: true,
522
+ decorators: true
513
523
  },
514
- target: "es5"
524
+ target: "es5",
525
+ transform: {
526
+ decoratorMetadata: true
527
+ }
515
528
  }
516
529
  }
517
530
  },
@@ -533,9 +546,13 @@ async function buildPluginClient(cwd, userConfig, sourcemap, log, isCommercial =
533
546
  sourceMap: true,
534
547
  jsc: {
535
548
  parser: {
536
- syntax: "typescript"
549
+ syntax: "typescript",
550
+ decorators: true
537
551
  },
538
- target: "es5"
552
+ target: "es5",
553
+ transform: {
554
+ decoratorMetadata: true
555
+ }
539
556
  }
540
557
  }
541
558
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/build",
3
- "version": "1.9.0-beta.8",
3
+ "version": "2.0.0-alpha.2",
4
4
  "description": "Library build tool based on rollup.",
5
5
  "main": "lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -54,5 +54,5 @@
54
54
  "build": "tsup",
55
55
  "build:watch": "tsup --watch"
56
56
  },
57
- "gitHead": "f3d4f3d1ba7adbf4d4c60e656c23da45565769c8"
57
+ "gitHead": "1322f486b248bef53ed8c8f42f0a39dfd02125fd"
58
58
  }