fix function editor in Grafana 6, #765

This commit is contained in:
Alexander Zobnin
2019-07-05 17:42:46 +03:00
parent 6b5b5f818b
commit 4346e13365
10 changed files with 667 additions and 251 deletions

View File

@@ -28,7 +28,7 @@ module.exports = {
externals: [
// remove the line below if you don't want to use builtin versions
'jquery', 'lodash', 'moment', 'angular',
'react', 'react-dom',
'react', 'react-dom', '@grafana/ui',
function (context, request, callback) {
var prefix = 'grafana/';
if (request.indexOf(prefix) === 0) {
@@ -53,7 +53,7 @@ module.exports = {
ExtractTextPluginDark,
],
resolve: {
extensions: [".js", ".ts", ".tsx", ".html", ".scss"]
extensions: ['.js', '.es6', '.ts', '.tsx', '.html', '.scss']
},
module: {
rules: [