File tree 2 files changed +80
-1
lines changed
2 files changed +80
-1
lines changed Original file line number Diff line number Diff line change
1
+ --- a/webpack.config.js 2017-11-03 19:41:59.847729765 +0100
2
+ +++ b/webpack.config.js 2017-11-03 19:41:00.897727305 +0100
3
+ @@ -1,5 +1,6 @@
4
+ const fs = require('fs');
5
+ const path = require('path');
6
+ + const webpack = require('webpack');
7
+ const CopyWebpackPlugin = require('copy-webpack-plugin');
8
+ const ProgressPlugin = require('webpack/lib/ProgressPlugin');
9
+ const CircularDependencyPlugin = require('circular-dependency-plugin');
10
+ @@ -536,6 +537,9 @@
11
+ "main"
12
+ ]
13
+ },
14
+ + "externals": [
15
+ + resolveExternals
16
+ + ],
17
+ "resolveLoader": {
18
+ "modules": [
19
+ "./node_modules",
20
+ @@ -917,6 +921,9 @@
21
+ "tsConfigPath": "src/tsconfig.app.json",
22
+ "skipCodeGeneration": true,
23
+ "compilerOptions": {}
24
+ + }),
25
+ + new webpack.ProvidePlugin({
26
+ + __extends: 'typescript-extends'
27
+ })
28
+ ],
29
+ "node": {
30
+ @@ -928,9 +935,25 @@
31
+ "process": true,
32
+ "module": false,
33
+ "clearImmediate": false,
34
+ - "setImmediate": false
35
+ + "setImmediate": false,
36
+ + "__dirname": true
37
+ },
38
+ "devServer": {
39
+ "historyApiFallback": true
40
+ }
41
+ };
42
+ +
43
+ + function resolveExternals(context, request, callback) {
44
+ + return resolveMeteor(request, callback) ||
45
+ + callback();
46
+ + }
47
+ +
48
+ + function resolveMeteor(request, callback) {
49
+ + var match = request.match(/^meteor\/(.+)$/);
50
+ + var pack = match && match[1];
51
+ +
52
+ + if (pack) {
53
+ + callback(null, 'Package["' + pack + '"]');
54
+ + return true;
55
+ + }
56
+ + }
Original file line number Diff line number Diff line change 1
1
const fs = require ( 'fs' ) ;
2
2
const path = require ( 'path' ) ;
3
+ const webpack = require ( 'webpack' ) ;
3
4
const CopyWebpackPlugin = require ( 'copy-webpack-plugin' ) ;
4
5
const ProgressPlugin = require ( 'webpack/lib/ProgressPlugin' ) ;
5
6
const CircularDependencyPlugin = require ( 'circular-dependency-plugin' ) ;
@@ -87,6 +88,9 @@ module.exports = {
87
88
"main"
88
89
]
89
90
} ,
91
+ "externals" : [
92
+ resolveExternals
93
+ ] ,
90
94
"resolveLoader" : {
91
95
"modules" : [
92
96
"./node_modules" ,
@@ -481,6 +485,9 @@ module.exports = {
481
485
"tsConfigPath" : "src/tsconfig.app.json" ,
482
486
"skipCodeGeneration" : true ,
483
487
"compilerOptions" : { }
488
+ } ) ,
489
+ new webpack . ProvidePlugin ( {
490
+ __extends : 'typescript-extends'
484
491
} )
485
492
] ,
486
493
"node" : {
@@ -492,9 +499,25 @@ module.exports = {
492
499
"process" : true ,
493
500
"module" : false ,
494
501
"clearImmediate" : false ,
495
- "setImmediate" : false
502
+ "setImmediate" : false ,
503
+ "__dirname" : true
496
504
} ,
497
505
"devServer" : {
498
506
"historyApiFallback" : true
499
507
}
500
508
} ;
509
+
510
+ function resolveExternals ( context , request , callback ) {
511
+ return resolveMeteor ( request , callback ) ||
512
+ callback ( ) ;
513
+ }
514
+
515
+ function resolveMeteor ( request , callback ) {
516
+ var match = request . match ( / ^ m e t e o r \/ ( .+ ) $ / ) ;
517
+ var pack = match && match [ 1 ] ;
518
+
519
+ if ( pack ) {
520
+ callback ( null , 'Package["' + pack + '"]' ) ;
521
+ return true ;
522
+ }
523
+ }
You can’t perform that action at this time.
0 commit comments