[Pkg-javascript-commits] [node-diffie-hellman] 82/88: Use extension when requiring a json file
Bastien Roucariès
rouca at moszumanska.debian.org
Thu May 4 10:19:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-diffie-hellman.
commit 501668e223e8d4a5a52f52cbc5acb191540b488e
Author: Vihang Mehta <vihangm at users.noreply.github.com>
Date: Mon Jan 25 19:11:02 2016 -0800
Use extension when requiring a json file
The lack of the `.json` makes webpack unhappy.
See https://github.com/webpack/node-libs-browser/issues/19
---
browser.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/browser.js b/browser.js
index fef8e7f..d4be92b 100644
--- a/browser.js
+++ b/browser.js
@@ -1,5 +1,5 @@
var generatePrime = require('./lib/generatePrime')
-var primes = require('./lib/primes')
+var primes = require('./lib/primes.json')
var DH = require('./lib/dh')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-diffie-hellman.git
More information about the Pkg-javascript-commits
mailing list