1
- // Pass through the invocation to the 'aspnet-prerendering' package, verifying that it can be loaded
2
- module . exports . renderToString = function ( callback ) {
3
- var aspNetPrerendering ;
4
- try {
5
- aspNetPrerendering = require ( 'aspnet-prerendering' ) ;
6
- } catch ( ex ) {
7
- // Developers sometimes have trouble with badly-configured Node installations, where it's unable
8
- // to find node_modules. Or they accidentally fail to deploy node_modules, or even to run 'npm install'.
9
- // Make sure such errors are reported back to the .NET part of the app.
10
- callback (
11
- 'Prerendering failed because of an error while loading \'aspnet-prerendering\'. Error was: '
12
- + ex . stack
13
- + '\nCurrent directory is: '
14
- + process . cwd ( )
15
- ) ;
16
- return ;
17
- }
18
-
19
- return aspNetPrerendering . renderToString . apply ( this , arguments ) ;
20
- } ;
1
+ ( function ( e , a ) { for ( var i in a ) e [ i ] = a [ i ] ; } ( exports , /******/ ( function ( modules ) { // webpackBootstrap
2
+ /******/ // The module cache
3
+ /******/ var installedModules = { } ;
4
+
5
+ /******/ // The require function
6
+ /******/ function __webpack_require__ ( moduleId ) {
7
+
8
+ /******/ // Check if module is in cache
9
+ /******/ if ( installedModules [ moduleId ] )
10
+ /******/ return installedModules [ moduleId ] . exports ;
11
+
12
+ /******/ // Create a new module (and put it into the cache)
13
+ /******/ var module = installedModules [ moduleId ] = {
14
+ /******/ exports : { } ,
15
+ /******/ id : moduleId ,
16
+ /******/ loaded : false
17
+ /******/ } ;
18
+
19
+ /******/ // Execute the module function
20
+ /******/ modules [ moduleId ] . call ( module . exports , module , module . exports , __webpack_require__ ) ;
21
+
22
+ /******/ // Flag the module as loaded
23
+ /******/ module . loaded = true ;
24
+
25
+ /******/ // Return the exports of the module
26
+ /******/ return module . exports ;
27
+ /******/ }
28
+
29
+
30
+ /******/ // expose the modules object (__webpack_modules__)
31
+ /******/ __webpack_require__ . m = modules ;
32
+
33
+ /******/ // expose the module cache
34
+ /******/ __webpack_require__ . c = installedModules ;
35
+
36
+ /******/ // __webpack_public_path__
37
+ /******/ __webpack_require__ . p = "" ;
38
+
39
+ /******/ // Load entry module and return exports
40
+ /******/ return __webpack_require__ ( 0 ) ;
41
+ /******/ } )
42
+ /************************************************************************/
43
+ /******/ ( [
44
+ /* 0 */
45
+ /***/ function ( module , exports , __webpack_require__ ) {
46
+
47
+ module . exports = __webpack_require__ ( 1 ) ;
48
+
49
+
50
+ /***/ } ,
51
+ /* 1 */
52
+ /***/ function ( module , exports , __webpack_require__ ) {
53
+
54
+ "use strict" ;
55
+ // Pass through the invocation to the 'aspnet-prerendering' package, verifying that it can be loaded
56
+ function renderToString ( callback ) {
57
+ var aspNetPrerendering ;
58
+ try {
59
+ aspNetPrerendering = __webpack_require__ ( 2 ) ;
60
+ }
61
+ catch ( ex ) {
62
+ // Developers sometimes have trouble with badly-configured Node installations, where it's unable
63
+ // to find node_modules. Or they accidentally fail to deploy node_modules, or even to run 'npm install'.
64
+ // Make sure such errors are reported back to the .NET part of the app.
65
+ callback ( 'Prerendering failed because of an error while loading \'aspnet-prerendering\'. Error was: '
66
+ + ex . stack
67
+ + '\nCurrent directory is: '
68
+ + process . cwd ( ) ) ;
69
+ return ;
70
+ }
71
+ return aspNetPrerendering . renderToString . apply ( this , arguments ) ;
72
+ }
73
+ exports . renderToString = renderToString ;
74
+
75
+
76
+ /***/ } ,
77
+ /* 2 */
78
+ /***/ function ( module , exports ) {
79
+
80
+ module . exports = require ( "aspnet-prerendering" ) ;
81
+
82
+ /***/ }
83
+ /******/ ] ) ) ) ;
0 commit comments