File: use-global-object-this.patch

package info (click to toggle)
node-handlebars 3%3A4.7.9-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,412 kB
  • sloc: javascript: 22,475; yacc: 136; lex: 125; sh: 72; ruby: 10; makefile: 7
file content (20 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Use global object this
 This is required to match the original upstream build configuration
 and makes it work on both node and web targets
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -77,12 +77,14 @@
       handlebars: {
         entry: './dist/cjs/handlebars.js',
         output: {
+          globalObject: 'this',
           filename: 'handlebars.js'
         }
       },
       runtime: {
         entry: './dist/cjs/handlebars.runtime.js',
         output: {
+          globalObject: 'this',
           filename: 'handlebars.runtime.js'
         }
       }