File tree Expand file tree Collapse file tree 4 files changed +32
-3
lines changed
packages/firestore/test/unit Expand file tree Collapse file tree 4 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* @license
3
- * Copyright 2017 Google Inc.
3
+ * Copyright 2017 Google LLC
4
4
*
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
@@ -52,6 +52,28 @@ module.exports = {
52
52
enforce : 'post' ,
53
53
exclude : [ / \. t e s t \. t s $ / , / \b t e s t ( i n g ) ? \/ / ]
54
54
} ,
55
+ {
56
+ test : / p a c k a g e s \/ f i r e s t o r e \/ .* \. t s x ? $ / ,
57
+ use : {
58
+ loader : 'string-replace-loader' ,
59
+ options : {
60
+ multiple : [
61
+ {
62
+ search : '/platform/platform' ,
63
+ replace : '/platform_browser/browser_platform'
64
+ } ,
65
+ {
66
+ search : '/platform/format_json' ,
67
+ replace : '/platform_browser/browser_format_json'
68
+ } ,
69
+ {
70
+ search : '/platform/random_bytes' ,
71
+ replace : '/platform_browser/browser_random_bytes'
72
+ }
73
+ ]
74
+ }
75
+ }
76
+ } ,
55
77
{
56
78
test : / \. j s $ / ,
57
79
include : [ / n o d e _ m o d u l e s \/ c h a i - a s - p r o m i s e d / ] ,
Original file line number Diff line number Diff line change 129
129
"sinon" : " 9.0.2" ,
130
130
"sinon-chai" : " 3.5.0" ,
131
131
"source-map-loader" : " 0.2.4" ,
132
+ "string-replace-loader" : " 2.3.0" ,
132
133
"terser" : " 4.6.13" ,
133
134
"ts-loader" : " 6.2.2" ,
134
135
"ts-node" : " 8.10.1" ,
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import '../../src/platform_browser/browser_init' ;
19
-
20
18
/**
21
19
* This will include all of the test files and compile them as needed
22
20
*
Original file line number Diff line number Diff line change @@ -13387,6 +13387,14 @@ string-length@^1.0.0:
13387
13387
dependencies:
13388
13388
strip-ansi "^3.0.0"
13389
13389
13390
+
13391
+ version "2.3.0"
13392
+ resolved "https://registry.npmjs.org/string-replace-loader/-/string-replace-loader-2.3.0.tgz#7f29be7d73c94dd92eccd5c5a15651181d7ecd3d"
13393
+ integrity sha512-HYBIHStViMKLZC/Lehxy42OuwsBaPzX/LjcF5mkJlE2SnHXmW6SW6eiHABTXnY8ZCm/REbdJ8qnA0ptmIzN0Ng==
13394
+ dependencies:
13395
+ loader-utils "^1.2.3"
13396
+ schema-utils "^2.6.5"
13397
+
13390
13398
string-width@^1.0.1, string-width@^1.0.2:
13391
13399
version "1.0.2"
13392
13400
resolved "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"
You can’t perform that action at this time.
0 commit comments