Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
918025f4
Unverified
Commit
918025f4
authored
Apr 03, 2020
by
Robert Knight
Committed by
GitHub
Apr 03, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1991 from hypothesis/fix-hammerjs-error
Fix Hammer.JS error on web pages that use Require.JS
parents
a137343e
45d74682
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
create-bundle.js
scripts/gulp/create-bundle.js
+8
-0
No files found.
scripts/gulp/create-bundle.js
View file @
918025f4
...
@@ -87,11 +87,19 @@ module.exports = function createBundle(config, buildOpts) {
...
@@ -87,11 +87,19 @@ module.exports = function createBundle(config, buildOpts) {
// modules provide the implementations of these.
// modules provide the implementations of these.
builtins
:
[
'console'
,
'_process'
,
'querystring'
],
builtins
:
[
'console'
,
'_process'
,
'querystring'
],
externalRequireName
,
externalRequireName
,
// Map of global variable names to functions returning _source code_ for
// the values of those globals.
insertGlobalVars
:
{
insertGlobalVars
:
{
// Workaround for Hammer.JS on pages that use RequireJS. Hammer doesn't
// set `module.exports` if a global variable called `define` exists.
define
:
()
=>
'undefined'
,
// The Browserify polyfill for the `Buffer` global is large and
// The Browserify polyfill for the `Buffer` global is large and
// unnecessary, but can get pulled into the bundle by modules that can
// unnecessary, but can get pulled into the bundle by modules that can
// optionally use it if present.
// optionally use it if present.
Buffer
:
undefined
,
Buffer
:
undefined
,
// Override the default stub for the `global` var which defaults to
// Override the default stub for the `global` var which defaults to
// the `global`, `self` and `window` globals in that order.
// the `global`, `self` and `window` globals in that order.
//
//
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment