Skip to content

Commit c8071ae

Browse files
moonglumFND
authored andcommitted
removed deprecated sourcemap option
`sourcemaps` has been the preferred option for ages now; cf. 41bacc6 NB: this constitutes a breaking change
1 parent c5a3bc9 commit c8071ae

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/bundle/config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,7 @@ module.exports = generateConfig;
5050
function generateConfig({ extensions = [], // eslint-disable-next-line indent
5151
externals, format, exports, // eslint-disable-next-line indent
5252
esnext, jsx, typescript, // eslint-disable-next-line indent
53-
sourcemaps, sourcemap, compact }, { browsers }) {
54-
if(sourcemap !== undefined) { // for backwards compatibility (explicit error)
55-
abort(`ERROR: ${repr("sourcemap", false)} has been deprecated in ` +
56-
`favor of ${repr("sourcemaps", false)}`);
57-
}
58-
53+
sourcemaps, compact }, { browsers }) {
5954
let cfg = { sourcemap: sourcemaps };
6055
let plugins = [];
6156

0 commit comments

Comments
 (0)