File tree 2 files changed +29
-7
lines changed
2 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 1
1
/*!
2
- * Copyright 2020, OpenTelemetry Authors
2
+ * Copyright The OpenTelemetry Authors
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
14
14
* limitations under the License.
15
15
*/
16
16
17
+ const webpack = require ( 'webpack' ) ;
18
+
17
19
const karmaWebpackConfig = require ( '../../karma.webpack' ) ;
18
20
const karmaBaseConfig = require ( '../../karma.base' ) ;
19
21
20
22
module . exports = ( config ) => {
23
+ {
24
+ const plugins = karmaWebpackConfig . plugins = [ ] ;
25
+ plugins . push ( new webpack . ProvidePlugin ( {
26
+ process : 'process/browser' ,
27
+ } ) ) ;
28
+ }
29
+
30
+ {
31
+ const plugins = karmaBaseConfig . plugins = [ ] ;
32
+ const toAdd = Object . keys ( require ( './package.json' ) . devDependencies )
33
+ . filter ( ( packageName ) => packageName . startsWith ( 'karma-' ) )
34
+ . map ( ( packageName ) => require ( packageName ) ) ;
35
+ plugins . push (
36
+ ...toAdd
37
+ ) ;
38
+ }
39
+
21
40
config . set ( Object . assign ( { } , karmaBaseConfig , {
22
41
webpack : karmaWebpackConfig
23
42
} ) )
Original file line number Diff line number Diff line change 48
48
"@opentelemetry/api" : " ^1.0.2"
49
49
},
50
50
"devDependencies" : {
51
+ "@jsdevtools/coverage-istanbul-loader" : " 3.0.5" ,
51
52
"@opentelemetry/api" : " 1.0.2" ,
52
53
"@types/mocha" : " 8.2.3" ,
53
54
"@types/node" : " 16.11.21" ,
54
55
"@types/webpack-env" : " 1.16.2" ,
56
+ "assert" : " 2.0.0" ,
55
57
"gts" : " 3.1.0" ,
56
- "istanbul-instrumenter-loader" : " 3.0.1" ,
57
- "karma" : " 6.3.16" ,
58
- "karma-chrome-launcher" : " 3.1.0" ,
58
+ "karma" : " 6.3.17" ,
59
+ "karma-chrome-launcher" : " 3.1.1" ,
59
60
"karma-coverage-istanbul-reporter" : " 3.0.3" ,
60
61
"karma-mocha" : " 2.0.1" ,
61
- "karma-spec-reporter" : " 0.0.32 " ,
62
- "karma-webpack" : " 4 .0.2 " ,
62
+ "karma-spec-reporter" : " 0.0.33 " ,
63
+ "karma-webpack" : " 5 .0.0 " ,
63
64
"mocha" : " 7.2.0" ,
64
65
"nyc" : " 15.1.0" ,
66
+ "process" : " 0.11.10" ,
65
67
"rimraf" : " 3.0.2" ,
66
68
"ts-loader" : " 8.3.0" ,
67
69
"ts-mocha" : " 8.0.0" ,
68
70
"typescript" : " 4.3.5" ,
69
- "webpack" : " 4.46.0"
71
+ "webpack" : " 5.72.0" ,
72
+ "webpack-cli" : " 4.9.2"
70
73
},
71
74
"dependencies" : {
72
75
"@opentelemetry/core" : " ^1.0.0"
You can’t perform that action at this time.
0 commit comments