@rsbuild/plugin-source-build 0.2.12 → 0.2.14

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/dist/index.d.ts CHANGED
@@ -7,8 +7,12 @@ declare const getSourceInclude: (options: {
7
7
  sourceField: string;
8
8
  }) => Promise<string[]>;
9
9
  interface PluginSourceBuildOptions {
10
- projectName?: string;
10
+ /**
11
+ * Used to configure the resolve field of the source code files.
12
+ * @default 'source''
13
+ */
11
14
  sourceField?: string;
15
+ projectName?: string;
12
16
  extraMonorepoStrategies?: ExtraMonorepoStrategies;
13
17
  }
14
18
  declare function pluginSourceBuild(options?: PluginSourceBuildOptions): RsbuildPlugin;
package/dist/index.js CHANGED
@@ -56,6 +56,12 @@ function pluginSourceBuild(options) {
56
56
  } = options ?? {};
57
57
  return {
58
58
  name: pluginName,
59
+ pre: [
60
+ "rsbuild:babel",
61
+ "uni-builder:babel",
62
+ "uni-builder:ts-loader",
63
+ "rsbuild-webpack:swc"
64
+ ],
59
65
  setup(api) {
60
66
  const projectRootPath = api.context.rootPath;
61
67
  let projects = [];
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/@modern-js+module-tools@2.43.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
1
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.44.0_typescript@5.3.2/node_modules/@modern-js/module-tools/shims/esm.js
2
2
  import { fileURLToPath } from "url";
3
3
  import path from "path";
4
4
 
@@ -31,6 +31,12 @@ function pluginSourceBuild(options) {
31
31
  } = options ?? {};
32
32
  return {
33
33
  name: pluginName,
34
+ pre: [
35
+ "rsbuild:babel",
36
+ "uni-builder:babel",
37
+ "uni-builder:ts-loader",
38
+ "rsbuild-webpack:swc"
39
+ ],
34
40
  setup(api) {
35
41
  const projectRootPath = api.context.rootPath;
36
42
  let projects = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-source-build",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "Source build plugin of Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -23,14 +23,14 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "@rsbuild/monorepo-utils": "0.2.12",
27
- "@rsbuild/shared": "0.2.12"
26
+ "@rsbuild/monorepo-utils": "0.2.14",
27
+ "@rsbuild/shared": "0.2.14"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@babel/core": "^7.23.2",
31
31
  "typescript": "^5.3.0",
32
- "@rsbuild/test-helper": "0.2.12",
33
- "@rsbuild/core": "0.2.12"
32
+ "@rsbuild/core": "0.2.14",
33
+ "@rsbuild/test-helper": "0.2.14"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@rsbuild/core": "0.x"