Panel Inspect: use monaco for json display (#25251)

This commit is contained in:
Ryan McKinley
2020-06-29 10:58:47 -07:00
committed by GitHub
parent dcd5752086
commit 1a711e7df0
16 changed files with 341 additions and 56 deletions

View File

@@ -25,7 +25,16 @@ const buildCjsPackage = ({ env }) => {
},
},
],
external: ['react', 'react-dom', '@grafana/data', 'moment', '@grafana/e2e-selectors'],
external: [
'react',
'react-dom',
'@grafana/data',
'@grafana/e2e-selectors',
'moment',
'monaco-editor', // Monaco should not be used directly
'monaco-editor/esm/vs/editor/editor.api', // Monaco should not be used directly
'react-monaco-editor',
],
plugins: [
commonjs({
include: /node_modules/,