Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit 3623213

Browse files
committed
added source-map-loader
1 parent 45c7c14 commit 3623213

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

Diff for: packages/react-scripts/config/webpack.config.dev.js

+6
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ module.exports = {
132132
enforce: 'pre',
133133
include: paths.appSrc,
134134
},
135+
{
136+
test: /\.js$/,
137+
loader: require.resolve('source-map-loader'),
138+
enforce: 'pre',
139+
include: paths.appSrc,
140+
},
135141
// ** ADDING/UPDATING LOADERS **
136142
// The "file" loader handles all assets unless explicitly excluded.
137143
// The `exclude` list *must* be updated with every change to loader extensions.

Diff for: packages/react-scripts/config/webpack.config.prod.js

+6
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ module.exports = {
130130
enforce: 'pre',
131131
include: paths.appSrc,
132132
},
133+
{
134+
test: /\.js$/,
135+
loader: require.resolve('source-map-loader'),
136+
enforce: 'pre',
137+
include: paths.appSrc,
138+
},
133139
// ** ADDING/UPDATING LOADERS **
134140
// The "file" loader handles all assets unless explicitly excluded.
135141
// The `exclude` list *must* be updated with every change to loader extensions.

Diff for: packages/react-scripts/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"tslint-loader": "^3.3.0",
4848
"tslint-react": "^2.0.0",
4949
"typescript": "^2.3.2",
50+
"source-map-loader": "^0.2.1",
5051
"sw-precache-webpack-plugin": "0.9.1",
5152
"url-loader": "0.5.8",
5253
"webpack": "2.5.1",

0 commit comments

Comments
 (0)