Hello?
I'm kind of a newbie in developing external kibana typescript plugin.
I try to modify typescripts code and then running optimizer api. (https://github.com/elastic/kibana/tree/master/packages/kbn-optimizer) It seem to well compiled.
But, when I plugin install zip file to Kibana then, it occurs "exports is not defined" error
This is my tsconfig.json
{
"compilerOptions": {
"sourceMap": true,
"skipLibCheck": true,
"baseUrl": ".",
"paths": {
"kibana": ["./kibana"],
"ui/*": ["src/legacy/ui/public/*"],
"test_utils/*": ["src/test_utils/public/*"]
},
"jsx": "react",
"strict": true,
"lib": [
"esnext",
"dom"
],
"target": "es2015",
"module": "es2015",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"moduleResolution": "node",
"forceConsistentCasingInFileNames": true,
"keyofStringsOnly": true,
"noUnusedLocals": true,
"downlevelIteration": true,
"importHelpers": true,
"types": ["node", "jest", "react"]
},
"include": [
"common/*",
"server/**/*",
"public/**/*"
],
"exclude": ["node_modules", "*/node_modules/"]
}
May I ask some advice or solutions?