File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11module . exports = {
22 env : {
3- // Handlebars should run natively in the browser
4- node : false
3+ // Handlebars not use node or browser-specific apis
4+ 'shared-node-browser' : true ,
5+ node : false ,
6+ browser : false
57 }
68} ;
Original file line number Diff line number Diff line change 1- /* global define */
1+ /* global define, require */
22import { isArray } from '../utils' ;
33
44let SourceNode ;
88 if ( typeof define !== 'function' || ! define . amd ) {
99 // We don't support this in AMD environments. For these environments, we assume that
1010 // they are running on the browser and thus have no need for the source-map library.
11- let SourceMap = require ( 'source-map' ) ; // eslint-disable-line no-undef
11+ let SourceMap = require ( 'source-map' ) ;
1212 SourceNode = SourceMap . SourceNode ;
1313 }
1414} catch ( err ) {
Original file line number Diff line number Diff line change 1+ /* global global, window */
12export default function ( Handlebars ) {
23 /* istanbul ignore next */
3- let root = typeof global !== 'undefined' ? global : window , // eslint-disable-line no-undef
4+ let root = typeof global !== 'undefined' ? global : window ,
45 $Handlebars = root . Handlebars ;
56 /* istanbul ignore next */
67 Handlebars . noConflict = function ( ) {
You can’t perform that action at this time.
0 commit comments