From 9177678ac3481265801e47d867ed0fc121e182f3 Mon Sep 17 00:00:00 2001 From: Jack Lawson Date: Tue, 3 Apr 2018 11:55:09 -0400 Subject: [PATCH] Update index.js --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 416414c..5c61f31 100644 --- a/index.js +++ b/index.js @@ -5,12 +5,13 @@ var ejs = require('ejs'), htmlmin = require('html-minifier'), merge = require('merge'); +var DEFAULT_OPTIONS = {}; module.exports = function (source) { this.cacheable && this.cacheable(); var query = typeof this.query === 'object' ? this.query : utils.parseQuery(this.query); - var opts = merge(this.options['ejs-compiled-loader'] || {}, query); + var opts = merge(DEFAULT_OPTIONS, query); opts.client = true; // Skip compile debug for production when running with