Skip to content

Commit c0ff0a4

Browse files
authored
fix: enable sourceMap config for unminified file (#817)
* fix: enable source config for unminified file * chore: bump @utoo/pack to 0.0.1-alpha.35
1 parent a71e0c7 commit c0ff0a4

File tree

4 files changed

+27
-28
lines changed

4 files changed

+27
-28
lines changed

examples/utoo-pack/.fatherrc.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default defineConfig({
88
generateUnminified: true,
99
rootPath: path.resolve(__dirname, '../../'),
1010
name: 'utoo-pack-example',
11+
sourcemap: false,
1112
externals: {
1213
react: {
1314
root: 'React',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@umijs/case-sensitive-paths-webpack-plugin": "^1.0.1",
5050
"@umijs/core": "^4.4.11",
5151
"@umijs/utils": "^4.4.11",
52-
"@utoo/pack": "0.0.1-alpha.34",
52+
"@utoo/pack": "0.0.1-alpha.35",
5353
"@vercel/ncc": "0.33.3",
5454
"babel-plugin-dynamic-import-node": "2.3.3",
5555
"babel-plugin-module-resolver": "4.1.0",

pnpm-lock.yaml

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/builder/config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ export function normalizeUserConfig(
160160
...singleConfig,
161161
entry,
162162
jsMinifier: JSMinifier.none,
163-
sourcemap: false,
164163
output: {
165164
filename: entryOutput.filename || `${path.parse(entry).name}.js`,
166165
path: entryOutput.path || output.path || 'dist/umd',
@@ -183,7 +182,6 @@ export function normalizeUserConfig(
183182
...bundleConfig,
184183
entry: defaultEntry,
185184
jsMinifier: JSMinifier.none,
186-
sourcemap: false,
187185
output: {
188186
filename: output.filename
189187
? `${output.filename}`

0 commit comments

Comments
 (0)