Skip to content

Commit 7253963

Browse files
Fix esbuild inlining issue
1 parent 4fe8287 commit 7253963

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ module.exports = function(config) {
324324
// esbuild options
325325
target: 'es2017',
326326
define: {
327-
COVERAGE: coverage,
327+
COVERAGE: JSON.stringify(coverage),
328328
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || ''),
329-
ENABLE_PERFORMANCE: performance
329+
ENABLE_PERFORMANCE: JSON.stringify(performance)
330330
},
331331
plugins: [createEsbuildPlugin()]
332332
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
"csstype": "^3.0.5",
289289
"diff": "^5.0.0",
290290
"errorstacks": "^2.4.0",
291-
"esbuild": "^0.11.21",
291+
"esbuild": "^0.16.10",
292292
"eslint": "5.15.1",
293293
"eslint-config-developit": "^1.1.1",
294294
"eslint-config-prettier": "^6.5.0",

0 commit comments

Comments
 (0)