File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -214,12 +214,14 @@ target.bundle = function() {
214
214
'pattern.js' ,
215
215
'stream.js' ,
216
216
'worker.js' ,
217
- '../external/jpgjs/jpg.js' ,
218
217
'jpx.js' ,
219
218
'jbig2.js' ,
220
219
'bidi.js' ,
221
220
'metadata.js' ];
222
221
222
+ var EXT_SRC_FILES = [
223
+ '../external/jpgjs/jpg.js' ];
224
+
223
225
if (!test ('-d' , BUILD_DIR ))
224
226
mkdir (BUILD_DIR );
225
227
@@ -230,6 +232,13 @@ target.bundle = function() {
230
232
231
233
crlfchecker .checkIfCrlfIsPresent (SRC_FILES );
232
234
235
+ // Strip out all the vim/license headers.
236
+ var reg = /\n \/\* -\*- Mode (.|\n )*?Mozilla Foundation (.|\n )*?'use strict' ;/g ;
237
+ bundle = bundle .replace (reg , '');
238
+
239
+ // Append external files last since we don't want to modify them.
240
+ bundle += cat (EXT_SRC_FILES );
241
+
233
242
// This just preprocesses the empty pdf.js file, we don't actually want to
234
243
// preprocess everything yet since other build targets use this file.
235
244
builder .preprocess ('pdf.js' , ROOT_DIR + BUILD_TARGET ,
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
+ 'use strict' ;
19
+
18
20
/**
19
21
* This is the main entry point for loading a PDF and interacting with it.
20
22
* NOTE: If a URL is used to fetch the PDF data a standard XMLHttpRequest(XHR)
You can’t perform that action at this time.
0 commit comments