@bleedingdev/modern-js-server-utils 3.9.3-ultramodern.1 → 3.9.3-ultramodern.11

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.
@@ -220,7 +220,7 @@ const compileServerSources = async (appDirectory, config, options)=>{
220
220
  root: distDir
221
221
  },
222
222
  cleanDistPath: false,
223
- sourceMap: {
223
+ sourceMap: config.sourceMap ?? {
224
224
  js: 'source-map'
225
225
  }
226
226
  },
@@ -178,7 +178,7 @@ const compileServerSources = async (appDirectory, config, options)=>{
178
178
  root: distDir
179
179
  },
180
180
  cleanDistPath: false,
181
- sourceMap: {
181
+ sourceMap: config.sourceMap ?? {
182
182
  js: 'source-map'
183
183
  }
184
184
  },
@@ -179,7 +179,7 @@ const compileServerSources = async (appDirectory, config, options)=>{
179
179
  root: distDir
180
180
  },
181
181
  cleanDistPath: false,
182
- sourceMap: {
182
+ sourceMap: config.sourceMap ?? {
183
183
  js: 'source-map'
184
184
  }
185
185
  },
@@ -1,4 +1,5 @@
1
1
  import type { SourceNormalizedConfig } from '@modern-js/server-core';
2
+ import type { LibConfig } from '@rslib/core';
2
3
  export interface Pattern {
3
4
  from: string;
4
5
  to: string;
@@ -6,6 +7,7 @@ export interface Pattern {
6
7
  }
7
8
  export interface IConfig {
8
9
  alias?: SourceNormalizedConfig['alias'];
10
+ sourceMap?: NonNullable<LibConfig['output']>['sourceMap'];
9
11
  }
10
12
  export interface CompileOptions {
11
13
  sourceDirs: string[];
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "modern",
18
18
  "modern.js"
19
19
  ],
20
- "version": "3.9.3-ultramodern.1",
20
+ "version": "3.9.3-ultramodern.11",
21
21
  "types": "./dist/types/index.d.ts",
22
22
  "main": "./dist/cjs/index.js",
23
23
  "exports": {
@@ -38,15 +38,15 @@
38
38
  }
39
39
  },
40
40
  "dependencies": {
41
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.3-ultramodern.1",
41
+ "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.9.3-ultramodern.11",
42
42
  "@rslib/core": "1.0.3",
43
43
  "@swc/helpers": "^0.5.23",
44
44
  "typescript": "7.0.2"
45
45
  },
46
46
  "devDependencies": {
47
- "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.9.3-ultramodern.1",
47
+ "@modern-js/server-core": "npm:@bleedingdev/modern-js-server-core@3.9.3-ultramodern.11",
48
48
  "@scripts/rstest-config": "2.66.0",
49
- "@types/node": "^26.6.3"
49
+ "@types/node": "^26.6.5"
50
50
  },
51
51
  "sideEffects": false,
52
52
  "publishConfig": {