File tree 3 files changed +8
-5
lines changed 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
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
5
7
}
6
8
} ;
Original file line number Diff line number Diff line change 1
- /* global define */
1
+ /* global define, require */
2
2
import { isArray } from '../utils' ;
3
3
4
4
let SourceNode ;
8
8
if ( typeof define !== 'function' || ! define . amd ) {
9
9
// We don't support this in AMD environments. For these environments, we assume that
10
10
// 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' ) ;
12
12
SourceNode = SourceMap . SourceNode ;
13
13
}
14
14
} catch ( err ) {
Original file line number Diff line number Diff line change
1
+ /* global global, window */
1
2
export default function ( Handlebars ) {
2
3
/* istanbul ignore next */
3
- let root = typeof global !== 'undefined' ? global : window , // eslint-disable-line no-undef
4
+ let root = typeof global !== 'undefined' ? global : window ,
4
5
$Handlebars = root . Handlebars ;
5
6
/* istanbul ignore next */
6
7
Handlebars . noConflict = function ( ) {
You can’t perform that action at this time.
0 commit comments