From 667e9a21c10649185e92b319006cea5eb8d61f31 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Tue, 18 Aug 2020 15:48:36 -0700 Subject: [PATCH] amend 2b8a1ff; put change in browser-entry.js Signed-off-by: Christopher Hiller --- browser-entry.js | 4 ++-- rollup.config.js | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/browser-entry.js b/browser-entry.js index cdcb56b6fb..dee3789231 100644 --- a/browser-entry.js +++ b/browser-entry.js @@ -210,8 +210,8 @@ Mocha.process = process; * Expose mocha. */ -mocha.Mocha = Mocha; -mocha.mocha = mocha; +global.Mocha = Mocha; +global.mocha = mocha; // this allows test/acceptance/required-tokens.js to pass; thus, // you can now do `const describe = require('mocha').describe` in a diff --git a/rollup.config.js b/rollup.config.js index d475c477a9..4b4f3494e4 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -17,8 +17,7 @@ const config = { file: './mocha.js', format: 'umd', sourcemap: true, - name: 'mocha', - footer: 'window.Mocha = window.mocha.Mocha;' + name: 'mocha' }, plugins: [ json(),