Skip to content

Commit 16f96fe

Browse files
committed
Update build process
Remove non-minified build (non-esm) Ensure sourcemap is generated for the minified version
1 parent 8b7103f commit 16f96fe

File tree

4 files changed

+7
-45
lines changed

4 files changed

+7
-45
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ April 9, 2023
99
- As a result, `getFlattenedFields` would produce incorrect results for these fields if they were not aliased.
1010
- Upgraded webpack, migrated from Travis CI to Github Actions
1111
- Update dependencies to resolve reported security issues
12+
- Update build process to fix invalid sourcemap mapping (#227)
13+
- Removed non-minified version of application which had incorrect path to sourcemaps
14+
- Ensure webpack generates a sourcemap for the minified code output
1215

1316
## 4.7.1
1417

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"clean:esm": "rm -rf ./dist_esm/*",
1111
"clean:cli": "rm -rf ./dist_cli/*",
1212
"prebuild": "npm run clean",
13-
"build": "npm-run-all compile bundle:regular bundle:min build:esm build:cli",
13+
"build": "npm-run-all compile bundle:min build:esm build:cli",
1414
"build:esm": "npm-run-all clean:esm compile:esm",
1515
"build:cli": "npm-run-all clean:cli compile:cli",
1616
"compile": "tsc --project tsconfig.json",
1717
"compile:esm": "tsc --project tsconfig-esm.json",
1818
"compile:cli": "tsc --project tsconfig-cli.json",
1919
"bundle:regular": "webpack --config webpack-regular.config.js",
20-
"bundle:min": "webpack --config webpack-min.config.js",
20+
"bundle:min": "webpack --config webpack.config.js",
2121
"tsc": "./node_modules/.bin/tsc",
2222
"release": "release-it",
2323
"copy-tc-to-docs": "ts-node ./tasks/copy-test-cases-to-docs.ts",

webpack-min.config.js

Lines changed: 0 additions & 42 deletions
This file was deleted.

webpack-regular.config.js renamed to webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const banner = `/*! ${pkg.name} - v${pkg.version} */`;
88

99
module.exports = {
1010
mode: 'production',
11+
devtool: 'source-map',
1112
stats: {
1213
colors: true,
1314
modules: true,
@@ -24,7 +25,7 @@ module.exports = {
2425
globalObject: "typeof self !== 'undefined' ? self : this",
2526
},
2627
optimization: {
27-
minimize: false,
28+
minimize: true,
2829
},
2930
module: {
3031
rules: [

0 commit comments

Comments
 (0)