ionic-team / ionic-team/ionic-cli

`ionic capacitor build` produces source maps

Đang mở
#4,741 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
triage
Ngôn ngữ chính
TypeScript
Star
2k
Fork
682
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Description:**

Running the `ionic capacitor build` command produces source maps in `build/static` folder. I __do not__ specify the `--source-map` option. With or without the `--prod` option.
According to the [docs](https://ionicframework.com/docs/cli/commands/capacitor-build#advanced-options), source maps must only be produced when `--source-map` is specified.
As you can see from the --verbose output, source maps are being generated by default.

**Steps to Reproduce:**

See Description

**Output:**

See attached file
[log.txt](https://github.com/ionic-team/ionic-cli/files/6888305/log.txt)

**My `ionic info`:**

```
[WARN] Error loading @capacitor/ios package.json: Error: Cannot find module '@capacitor/ios/package'

Require stack:
- /usr/local/lib/node_modules/@ionic/cli/lib/project/index.js
- /usr/local/lib/node_modules/@ionic/cli/lib/index.js
- /usr/local/lib/node_modules/@ionic/cli/index.js
- /usr/local/lib/node_modules/@ionic/cli/bin/ionic

Ionic:

Ionic CLI : 6.16.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 5.6.12

Capacitor:

Capacitor CLI : 3.1.2
@capacitor/android : 3.1.2
@capacitor/core : 3.1.2
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run : 1.4.0

System:

NodeJS : v16.1.0 (/usr/local/bin/node)
npm : 7.11.2
OS : macOS Mojave
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.