2017-04-13 06:04:10 +08:00
|
|
|
This example demonstrates various types of source-maps.
|
|
|
|
|
|
|
|
|
|
# example.coffee
|
|
|
|
|
|
|
|
|
|
``` coffeescript
|
|
|
|
|
{{example.coffee}}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# webpack.config.js
|
|
|
|
|
|
|
|
|
|
``` javascript
|
|
|
|
|
{{webpack.config.js}}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# Generated source-maps
|
|
|
|
|
|
|
|
|
|
## source-map.js and source-map.js.map
|
|
|
|
|
``` javascript
|
2018-01-05 04:39:29 +08:00
|
|
|
{{dist/bundle-source-map.js}}
|
2017-04-13 06:04:10 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
``` javascript
|
2018-01-05 04:39:29 +08:00
|
|
|
{{dist/bundle-source-map.js.map}}
|
2017-04-13 06:04:10 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## hidden-source-map.js and hidden-source-map.js.map
|
|
|
|
|
``` javascript
|
2018-01-05 04:39:29 +08:00
|
|
|
{{dist/bundle-hidden-source-map.js}}
|
2017-04-13 06:04:10 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
``` javascript
|
2018-01-05 04:39:29 +08:00
|
|
|
{{dist/bundle-hidden-source-map.js.map}}
|
2017-04-13 06:04:10 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## inline-source-map.js
|
|
|
|
|
``` javascript
|
2018-01-05 04:39:29 +08:00
|
|
|
{{dist/bundle-inline-source-map.js}}
|
2017-04-13 06:04:10 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## nosources-source-map.js.map
|
|
|
|
|
``` javascript
|
2018-01-05 04:39:29 +08:00
|
|
|
{{dist/bundle-nosources-source-map.js.map}}
|
2017-04-13 06:04:10 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## eval-source-map.js
|
|
|
|
|
``` javascript
|
2018-01-05 04:39:29 +08:00
|
|
|
{{dist/bundle-eval-source-map.js}}
|
2017-04-13 06:04:10 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## eval.js
|
|
|
|
|
``` javascript
|
2018-01-05 04:39:29 +08:00
|
|
|
{{dist/bundle-eval.js}}
|
2017-04-13 06:04:10 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## cheap-eval-source-map.js
|
|
|
|
|
``` javascript
|
2018-01-05 04:39:29 +08:00
|
|
|
{{dist/bundle-cheap-eval-source-map.js}}
|
2017-04-13 06:04:10 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## cheap-module-eval-source-map.js
|
|
|
|
|
``` javascript
|
2018-01-05 04:39:29 +08:00
|
|
|
{{dist/bundle-cheap-module-eval-source-map.js}}
|
2017-04-13 06:04:10 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## cheap-module-source-map.js.map
|
|
|
|
|
``` javascript
|
2018-01-05 04:39:29 +08:00
|
|
|
{{dist/bundle-cheap-module-source-map.js.map}}
|
2017-04-13 06:04:10 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## cheap-source-map.js.map
|
|
|
|
|
``` javascript
|
2018-01-05 04:39:29 +08:00
|
|
|
{{dist/bundle-cheap-source-map.js.map}}
|
2017-04-13 06:04:10 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# webpack output
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
{{stdout}}
|
|
|
|
|
```
|