forked from artsy/force
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpug-loader+2.4.0.patch
27 lines (24 loc) · 1013 Bytes
/
pug-loader+2.4.0.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
patch-package
--- a/node_modules/pug-loader/index.js
+++ b/node_modules/pug-loader/index.js
@@ -9,10 +9,13 @@ module.exports = function(source) {
var modulePaths = {};
modulePaths.pug = require.resolve("pug");
+ modulePaths.jade = require.resolve("jade");
modulePaths.load = nodeResolve("pug-load", {basedir: dirname(modulePaths.pug)});
modulePaths.runtime = nodeResolve("pug-runtime", {basedir: dirname(modulePaths.pug)});
- var pug = require(modulePaths.pug);
+ // FIXME: Remap to jade for time being since we're locked in with Jade
+ // var pug = require(modulePaths.pug);
+ var jade = require(modulePaths.jade);
var load = require(modulePaths.load);
var req = loaderUtils.getRemainingRequest(this).replace(/^!/, "");
@@ -133,7 +136,7 @@ module.exports = function(source) {
run();
function run() {
try {
- var tmplFunc = pug.compileClient(source, {
+ var tmplFunc = jade.compileClient(source, {
filename: req,
doctype: query.doctype || "html",
pretty: query.pretty,