File tree 2 files changed +11
-1
lines changed 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const config: RollupOptions = {
16
16
include : 'config.js' ,
17
17
exclude : 'node_modules/**' ,
18
18
delimiters : [ '<@' , '@>' ] ,
19
+ preventAssignment : true ,
19
20
VERSION : '1.0.0' ,
20
21
ENVIRONMENT : JSON . stringify ( 'development' ) ,
21
22
__dirname : ( id ) => `'${ dirname ( id ) } '` ,
Original file line number Diff line number Diff line change @@ -8,7 +8,11 @@ export interface RollupReplaceOptions {
8
8
* All other options are treated as `string: replacement` replacers,
9
9
* or `string: (id) => replacement` functions.
10
10
*/
11
- [ str : string ] : Replacement | RollupReplaceOptions [ 'include' ] | RollupReplaceOptions [ 'values' ] ;
11
+ [ str : string ] :
12
+ | Replacement
13
+ | RollupReplaceOptions [ 'include' ]
14
+ | RollupReplaceOptions [ 'values' ]
15
+ | RollupReplaceOptions [ 'preventAssignment' ] ;
12
16
13
17
/**
14
18
* A minimatch pattern, or array of patterns, of files that should be
@@ -24,6 +28,11 @@ export interface RollupReplaceOptions {
24
28
* of `foo`, supply delimiters
25
29
*/
26
30
delimiters ?: [ string , string ] ;
31
+ /**
32
+ * Prevents replacing strings where they are followed by a single equals
33
+ * sign.
34
+ */
35
+ preventAssignment ?: boolean ;
27
36
/**
28
37
* You can separate values to replace from other options.
29
38
*/
You can’t perform that action at this time.
0 commit comments