mirror of https://github.com/webpack/webpack.git
58 lines
661 B
Markdown
58 lines
661 B
Markdown
This example demonstrates various types of source-maps.
|
|
|
|
# example.js
|
|
|
|
```js
|
|
_{{example.js}}_
|
|
```
|
|
|
|
# node_modules/library/src/index.ts
|
|
|
|
```typescript
|
|
_{{node_modules/library/src/index.ts}}_
|
|
```
|
|
|
|
# node_modules/library/lib/index.js
|
|
|
|
```js
|
|
_{{node_modules/library/lib/index.js}}_
|
|
```
|
|
|
|
# node_modules/library/lib/index.js.map
|
|
|
|
```json
|
|
_{{node_modules/library/lib/index.js.map}}_
|
|
```
|
|
|
|
# webpack.config.js
|
|
|
|
```javascript
|
|
_{{webpack.config.js}}_
|
|
```
|
|
|
|
# dist/output.js
|
|
|
|
```javascript
|
|
_{{dist/output.js}}_
|
|
```
|
|
|
|
# dist/output.js.map
|
|
|
|
```json
|
|
_{{dist/output.js.map}}_
|
|
```
|
|
|
|
# Info
|
|
|
|
## Unoptimized
|
|
|
|
```
|
|
_{{stdout}}_
|
|
```
|
|
|
|
## Production mode
|
|
|
|
```
|
|
_{{production:stdout}}_
|
|
```
|