Fix #858: the `dist/jsoneditor.js` bundle containing a link to a non-existing source map

This commit is contained in:
josdejong 2020-05-10 11:46:11 +02:00
parent 7dafdf8d9a
commit 561e582de8
4 changed files with 33 additions and 0 deletions

View File

@ -3,6 +3,12 @@
https://github.com/josdejong/jsoneditor https://github.com/josdejong/jsoneditor
## not yet published, version 8.6.8
- Fix #858: the `dist/jsoneditor.js` bundle containing a link to a
non-existing source map.
## not yet published, version 8.6.7 ## not yet published, version 8.6.7
- Update dependencies to `ajv@6.12.2`. - Update dependencies to `ajv@6.12.2`.

View File

@ -43,6 +43,11 @@ const webpackConfigModule = {
use: { use: {
loader: 'babel-loader' loader: 'babel-loader'
} }
},
{
test: /\.js$/,
use: ['source-map-loader'],
enforce: 'pre'
} }
] ]
} }

21
package-lock.json generated
View File

@ -8633,6 +8633,27 @@
"integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
"dev": true "dev": true
}, },
"source-map-loader": {
"version": "0.2.4",
"resolved": "https://registry.npmjs.org/source-map-loader/-/source-map-loader-0.2.4.tgz",
"integrity": "sha512-OU6UJUty+i2JDpTItnizPrlpOIBLmQbWMuBg9q5bVtnHACqw1tn9nNwqJLbv0/00JjnJb/Ee5g5WS5vrRv7zIQ==",
"dev": true,
"requires": {
"async": "^2.5.0",
"loader-utils": "^1.1.0"
},
"dependencies": {
"async": {
"version": "2.6.3",
"resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz",
"integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==",
"dev": true,
"requires": {
"lodash": "^4.17.14"
}
}
}
},
"source-map-resolve": { "source-map-resolve": {
"version": "0.5.3", "version": "0.5.3",
"resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz",

View File

@ -51,6 +51,7 @@
"json-loader": "0.5.7", "json-loader": "0.5.7",
"mkdirp": "1.0.4", "mkdirp": "1.0.4",
"mocha": "7.1.2", "mocha": "7.1.2",
"source-map-loader": "0.2.4",
"standard": "14.3.3", "standard": "14.3.3",
"uglify-js": "3.9.1", "uglify-js": "3.9.1",
"webpack": "4.43.0" "webpack": "4.43.0"