I have a file config.ts, the content is export default { entry: './src/index.ts' }.
I want get struct {entry: './src/index.ts'}.
I try vm.Run, error: (anonymous): Line 1:1 Unexpected reserved word
What shall I do?
I hope you can answer my questions. Thank you very much
I have a file
config.ts
, the content isexport default { entry: './src/index.ts' }
. I want get struct{entry: './src/index.ts'}
. I tryvm.Run
, error:(anonymous): Line 1:1 Unexpected reserved word
What shall I do? I hope you can answer my questions. Thank you very much