aboutsummaryrefslogtreecommitdiff
path: root/webpackShims/sinon.js
diff options
context:
space:
mode:
authorSpencer <spalger@users.noreply.github.com>2017-10-31 16:31:22 -0700
committerGitHub <noreply@github.com>2017-10-31 16:31:22 -0700
commitf60639fccb2fa355b44129f940d3841b59dd47a6 (patch)
tree2dbc518f8197f78dcb7a4bf6c020e72e53455e4e /webpackShims/sinon.js
parentb38f45b9b1000e9ad8b97c416258c33b587db0ec (diff)
Upgrade to webpack 3 (#14315)
* [timelion] remove last remaining amd modules * [eslint-config-kibana] remove env.amd * [webpack] use absolute loader names * [webpack] remove absolute node_modules/ imports * [webpack] upgrade to webpack 3 * [uiFramework] make webpack build compatible with v3 * [eslint-import-resolver] use https://github.com/elastic/eslint-import-resolver-kibana/pull/21 * [baseOptimizer] don't break when pkg has no dependencies * [optimize] remove unnecessary json-loader * [optimize] remove local references to webpack vars * [eslint] upgrade to eslint-import-resolver-kibana 0.9.0 * [baseOptimizer] comment tweaks * [baseOptimizer] remove loader pinning In webpack 1 the loaders defined here were resolved relative to the file they were going to load, which meant that plugins in other projects could accidentally overwrite the loaders Kibana was trying to use, which is why the aliases were used to enforce proper resolution. In webpack 2 loaders are now resolved relative to the webpackConfig.context, which is set to the root of the Kibana repo. See https://webpack.js.org/configuration/module/#useentry * [webpack] rely on kibana webpack shims before checking node_modules
Diffstat (limited to 'webpackShims/sinon.js')
-rw-r--r--webpackShims/sinon.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webpackShims/sinon.js b/webpackShims/sinon.js
index 3bab26d89..9ffc5171c 100644
--- a/webpackShims/sinon.js
+++ b/webpackShims/sinon.js
@@ -1,2 +1,2 @@
-require('script!node_modules/sinon/pkg/sinon.js');
+require('script-loader!../node_modules/sinon/pkg/sinon.js');
module.exports = window.sinon;