[Pkg-javascript-commits] [ltx] 268/469: fixed for current browserify
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:03:11 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit deb5de1ed3a778d8acd3594714b853e41d64e360
Author: ▟ ▖▟ ▖ <dodo.the.last at gmail.com>
Date: Fri Oct 18 17:11:51 2013 +0200
fixed for current browserify
current browserify version caches all requires for each file, which lets `lib/parse.js` don't find `modName="./sax_ltx.js";require(modName)` anymore since it's not in the cache.
---
lib/index-browserify.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/index-browserify.js b/lib/index-browserify.js
index 5c44ae7..915e7d8 100644
--- a/lib/index-browserify.js
+++ b/lib/index-browserify.js
@@ -1,7 +1,8 @@
/* Cause browserify to bundle SAX parsers: */
//require('./sax_easysax');
//require('./sax_saxjs');
-require('./sax_ltx');
+var parse = require('./parse');
+parse.availableSaxParsers.push(parse.bestSaxParser = require('./sax_ltx'));
/* SHIM */
-module.exports = require('./index');
\ No newline at end of file
+module.exports = require('./index');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list