Skip to content

Commit 978121f

Browse files
authored
Actualize README.md
1 parent 2ed564f commit 978121f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ module.exports = {
9696

9797
### `rules[].modify`
9898

99-
Type: `(source: string, filename: string) => string`
99+
Type: `(source: string, path: string) => string`
100100

101101
`Required`
102102

103-
Function accept a source and filename. Should return a modified source.
103+
Function accept a source and file path. Should return a modified source.
104104

105105
WARNING: modify function should make syntax compatible changes, for example all unsupported syntax will break your build or create errors in runtime.
106106

@@ -113,9 +113,9 @@ module.exports = {
113113
rules: [
114114
{
115115
test: /my-file\.js$/,
116-
modify: (src, filename) =>
116+
modify: (src, path) =>
117117
src +
118-
`\n\n// This file (${filename}) is written by me. All rights reserved`
118+
`\n\n// This file (${path}) is written by me. All rights reserved`
119119
}
120120
]
121121
})

0 commit comments

Comments
 (0)