Skip to content

Commit fcd4f53

Browse files
codenproseKent C. Dodds
authored andcommitted
fix(devtool): add missing devtool options #113 (#118)
Add missing webpack devtool combinations i.e. #cheap-module-eval-inline-source-map
1 parent ad7b23d commit fcd4f53

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/properties/devtool/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import Joi from 'joi'
22

33
const options = [
4-
'eval',
5-
'cheap-eval-source-map',
64
'cheap-source-map',
7-
'cheap-module-eval-source-map',
5+
'cheap-eval-source-map',
6+
'cheap-hidden-source-map',
7+
'cheap-inline-source-map',
88
'cheap-module-source-map',
9+
'cheap-module-eval-source-map',
10+
'cheap-module-hidden-source-map',
11+
'cheap-module-inline-source-map',
12+
'eval',
913
'eval-source-map',
1014
'source-map',
1115
'hidden-source-map',

src/properties/devtool/index.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ const validModuleConfigs = [
55
{ input: 'eval' },
66
{ input: '#@eval' },
77
{ input: '#cheap-module-eval-source-map' },
8+
{ input: '#cheap-module-inline-source-map' },
89
{ input: 'hidden-source-map' },
910
{ input: 'inline-source-map' },
1011
{ input: 'eval-source-map' },
1112
{ input: 'cheap-source-map' },
13+
{ input: 'hidden-source-map' },
1214
]
1315

1416
const invalidModuleConfigs = [
@@ -22,4 +24,3 @@ describe('devtool', () => {
2224
allValid(validModuleConfigs, schema)
2325
allInvalid(invalidModuleConfigs, schema)
2426
})
25-

0 commit comments

Comments
 (0)