mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[webpack] enforce using elasticsearch-browser
This commit is contained in:
parent
05392a798f
commit
811991b58b
4 changed files with 8 additions and 7 deletions
|
@ -92,8 +92,8 @@
|
|||
"commander": "2.8.1",
|
||||
"css-loader": "0.17.0",
|
||||
"d3": "3.5.6",
|
||||
"elasticsearch": "8.0.1",
|
||||
"elasticsearch-browser": "8.0.1",
|
||||
"elasticsearch": "10.0.1",
|
||||
"elasticsearch-browser": "10.0.1",
|
||||
"expiry-js": "0.1.7",
|
||||
"exports-loader": "0.6.2",
|
||||
"expose-loader": "0.7.0",
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import 'elasticsearch-browser/elasticsearch.angular.js';
|
||||
import 'elasticsearch-browser';
|
||||
import _ from 'lodash';
|
||||
define(function (require) {
|
||||
|
||||
var es; // share the client amoungst all apps
|
||||
require('ui/modules')
|
||||
.get('kibana', ['elasticsearch', 'kibana/config'])
|
||||
|
|
3
webpackShims/elasticsearch-browser.js
Normal file
3
webpackShims/elasticsearch-browser.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
require('angular');
|
||||
module.exports = require('elasticsearch-browser/elasticsearch.angular.js');
|
||||
require('ui/modules').get('kibana', ['elasticsearch']);
|
|
@ -1,3 +1,2 @@
|
|||
require('angular');
|
||||
module.exports = require('node_modules/elasticsearch/elasticsearch.angular.min');
|
||||
require('ui/modules').get('kibana', ['elasticsearch']);
|
||||
module.exports = false;
|
||||
throw new Error('The elasticsearch npm module is not designed for use in the browser. Please use elasticsearch-browser');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue