[Gradle, JS] Fix source map support initializing for nodejs

This commit is contained in:
Ilya Goncharov
2019-11-12 20:28:08 +03:00
parent 20e33806ec
commit 4e427d2ce4
7 changed files with 8 additions and 35 deletions
@@ -1 +0,0 @@
require('source-map-support').install();
@@ -15,7 +15,6 @@
},
"dependencies": {
"@types/node": "^10.12.21",
"source-map-support": "^0.5.11",
"browser-process-hrtime": "^1.0.0"
},
"devDependencies": {
@@ -16,26 +16,6 @@ export default [
},
plugins: plugins()
},
{
input: './nodejs-source-map-support.js',
external: ['path', 'fs', 'module'],
output: {
file: 'lib/kotlin-nodejs-source-map-support.js',
format: 'cjs',
sourcemap: true
},
plugins: [
nodeResolve({
jsnext: true,
main: true
}),
commonjs(),
terser({
compress: true,
sourcemap: true
})
]
},
{
input: './karma.ts',
output: {
@@ -628,14 +628,6 @@ source-map-resolve@^0.5.0:
source-map-url "^0.4.0"
urix "^0.1.0"
source-map-support@^0.5.11:
version "0.5.12"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.12.tgz#b4f3b10d51857a5af0138d3ce8003b201613d599"
integrity sha512-4h2Pbvyy15EE02G+JOZpUCmqWJuqrs+sEkzewTm++BPi7Hvn/HwcqLAcNxYAyI0x13CpPPn+kMjl+hplXMHITQ==
dependencies:
buffer-from "^1.0.0"
source-map "^0.6.0"
source-map-support@~0.5.12:
version "0.5.13"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932"