Skip to content

Commit ee6ccc8

Browse files
committed
update esbuild.js
1 parent e74dcd8 commit ee6ccc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

esbuild.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let entryPlugin = {
1717
export {activate}
1818
`
1919
} else if (args.path == 'server.ts') {
20-
contents = `require('./server/node/jsonServerMain')`
20+
contents = 'require(\'./server/node/jsonServerMain\')'
2121
} else {
2222
throw new Error('Bad path')
2323
}
@@ -32,7 +32,7 @@ let entryPlugin = {
3232
async function start() {
3333
await require('esbuild').build({
3434
entryPoints: ['index.ts', 'server.ts'],
35-
define: {'process.env.NODE_ENV': JSON.stringify("production")},
35+
define: {'process.env.NODE_ENV': JSON.stringify('production')},
3636
bundle: true,
3737
platform: 'node',
3838
target: 'node14.14',

0 commit comments

Comments
 (0)