We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6eda559 + 29f44d5 commit 60e46e2Copy full SHA for 60e46e2
index.js
@@ -16,7 +16,7 @@ var CaptureClicks = require('./lib/CaptureClicks');
16
17
var URLPattern = require('url-pattern');
18
19
-module.exports = {
+var exportsObject = {
20
Locations: Router.Locations,
21
Pages: Router.Pages,
22
@@ -42,6 +42,8 @@ module.exports = {
42
43
// For ES6 imports, which can't modify module.exports directly
44
setCreateURLPatternCompilerFactory: function(fn) {
45
- this.createURLPatternCompiler = fn;
+ exportsObject.createURLPatternCompiler = fn;
46
}
47
};
48
+
49
+module.exports = exportsObject;
0 commit comments