@omnia/tooling-vue 8.0.317-dev → 8.0.320-dev

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.
@@ -1,3 +1,4 @@
1
+ import "../rspack/bundle";
1
2
  import { Configuration } from 'webpack';
2
3
  import { BuildOptions } from '@omnia/tooling-composers';
3
4
  import { guid } from "@omnia/fx-models";
@@ -17,6 +17,7 @@ const del_1 = tslib_1.__importDefault(require("del"));
17
17
  const fsExtra = tslib_1.__importStar(require("fs-extra"));
18
18
  const globby_1 = require("globby");
19
19
  const terser_1 = require("terser");
20
+ require("../rspack/bundle");
20
21
  const ts_loader_1 = tslib_1.__importDefault(require("../webpack-loaders/ts-loader"));
21
22
  const tsx_loader_1 = tslib_1.__importDefault(require("../webpack-loaders/tsx-loader"));
22
23
  const tooling_composers_1 = require("@omnia/tooling-composers");
@@ -35,6 +36,7 @@ let outDirManifestMetadata = "client/tooling/vue/output_manifests", _manifestsEn
35
36
  if ($.isExtensionEnv) {
36
37
  outDirManifestMetadata = "node_modules/@omnia/tooling-vue/internal-do-not-import-from-here/output_manifests";
37
38
  }
39
+ const useWebpack = process.argv.find(argv => argv === "--rspack") === undefined;
38
40
  tooling_1.core.registerCleanTask({
39
41
  order: 2,
40
42
  task: function () {
@@ -90,48 +92,50 @@ $.tooling.core.registerServeTask({
90
92
  });
91
93
  }
92
94
  });
93
- $.tooling.core.registerBuildTask({
94
- stage: $.tooling.core.TaskStage.BeforeBundleManifest,
95
- order: 2,
96
- task: function (entries) {
97
- return new Promise(function (resolve, reject) {
98
- if (!entries || entries.length === 0) {
99
- resolve(entries);
100
- return;
101
- }
102
- beforeBundleManifest(entries)
103
- .then(resolve, reject);
104
- });
105
- }
106
- });
107
- $.tooling.core.registerServeTask({
108
- stage: $.tooling.core.TaskStage.BeforeBundleManifest,
109
- order: 2,
110
- task: function (entries) {
111
- return new Promise(function (resolve, reject) {
112
- if (!entries || entries.length === 0) {
113
- resolve(entries);
114
- return;
115
- }
116
- beforeBundleManifest(entries)
117
- .then(resolve, reject);
118
- });
119
- }
120
- });
121
- $.tooling.core.registerBuildTask({
122
- stage: $.tooling.core.TaskStage.BundleManifest,
123
- order: 2,
124
- task: function (entries) {
125
- return new Promise(function (resolve, reject) {
126
- if (!entries || entries.length === 0) {
127
- resolve(entries);
128
- return;
129
- }
130
- bundleManifest(entries)
131
- .then(resolve, reject);
132
- });
133
- }
134
- });
95
+ if (useWebpack) {
96
+ $.tooling.core.registerBuildTask({
97
+ stage: $.tooling.core.TaskStage.BeforeBundleManifest,
98
+ order: 2,
99
+ task: function (entries) {
100
+ return new Promise(function (resolve, reject) {
101
+ if (!entries || entries.length === 0) {
102
+ resolve(entries);
103
+ return;
104
+ }
105
+ beforeBundleManifest(entries)
106
+ .then(resolve, reject);
107
+ });
108
+ }
109
+ });
110
+ $.tooling.core.registerServeTask({
111
+ stage: $.tooling.core.TaskStage.BeforeBundleManifest,
112
+ order: 2,
113
+ task: function (entries) {
114
+ return new Promise(function (resolve, reject) {
115
+ if (!entries || entries.length === 0) {
116
+ resolve(entries);
117
+ return;
118
+ }
119
+ beforeBundleManifest(entries)
120
+ .then(resolve, reject);
121
+ });
122
+ }
123
+ });
124
+ $.tooling.core.registerBuildTask({
125
+ stage: $.tooling.core.TaskStage.BundleManifest,
126
+ order: 2,
127
+ task: function (entries) {
128
+ return new Promise(function (resolve, reject) {
129
+ if (!entries || entries.length === 0) {
130
+ resolve(entries);
131
+ return;
132
+ }
133
+ bundleManifest(entries)
134
+ .then(resolve, reject);
135
+ });
136
+ }
137
+ });
138
+ }
135
139
  $.tooling.core.registerBuildTask({
136
140
  stage: $.tooling.core.TaskStage.AfterBundleManifest,
137
141
  order: 2,
@@ -1,4 +1,12 @@
1
1
  export declare function transformVueJsx(code: string, id: string): {
2
- code: any;
3
- map: any;
2
+ code: string;
3
+ map: {
4
+ version: number;
5
+ sources: string[];
6
+ names: string[];
7
+ sourceRoot?: string | undefined;
8
+ sourcesContent?: string[] | undefined;
9
+ mappings: string;
10
+ file: string;
11
+ };
4
12
  };
@@ -43,8 +43,16 @@ export declare class StylexPlugin {
43
43
  constructor(options?: PluginOptions);
44
44
  apply(compiler: any): void;
45
45
  transformCode(inputCode: string, filename: any, logger: any): Promise<{
46
- code: any;
47
- map: any;
46
+ code: string;
47
+ map: {
48
+ version: number;
49
+ sources: string[];
50
+ names: string[];
51
+ sourceRoot?: string | undefined;
52
+ sourcesContent?: string[] | undefined;
53
+ mappings: string;
54
+ file: string;
55
+ };
48
56
  } | {
49
57
  code: string;
50
58
  map?: undefined;
@@ -181,8 +181,9 @@ class StylexPlugin {
181
181
  ],
182
182
  presets: this.babelConfig.presets,
183
183
  });
184
- if (metadata.stylex != null && metadata.stylex.length > 0) {
185
- this.stylexRules[filename] = metadata.stylex;
184
+ const stylex = metadata.stylex;
185
+ if (stylex != null && stylex.length > 0) {
186
+ this.stylexRules[filename] = stylex;
186
187
  }
187
188
  if (!this.babelConfig.babelrc) {
188
189
  return { code, map };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/tooling-vue",
3
3
  "license": "MIT",
4
- "version": "8.0.317-dev",
4
+ "version": "8.0.320-dev",
5
5
  "description": "Used to bundle and serve manifests web component that build on Vue framework.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -19,8 +19,8 @@
19
19
  ],
20
20
  "author": "Precio Fishbone",
21
21
  "dependencies": {
22
- "@omnia/fx-models": "8.0.317-dev",
23
- "@omnia/tooling-composers": "8.0.317-dev",
22
+ "@omnia/fx-models": "8.0.320-dev",
23
+ "@omnia/tooling-composers": "8.0.320-dev",
24
24
  "@types/mousetrap": "1.5.34",
25
25
  "@types/quill": "1.3.6",
26
26
  "@types/zepto": "1.0.29",
@@ -61,7 +61,9 @@
61
61
  "vite-plugin-inspect": "0.8.3",
62
62
  "appdata-path": "1.0.0",
63
63
  "url": "0.11.0",
64
- "@stylexjs/babel-plugin": "0.6.1"
64
+ "@stylexjs/babel-plugin": "0.6.1",
65
+ "@rsbuild/core": "1.1.1",
66
+ "@rsbuild/plugin-vue-jsx": "1.0.1"
65
67
  },
66
68
  "bugs": {
67
69
  "url": "https://github.com/preciofishbone/OmniaFx/issues"
File without changes