Skip to content

Commit e426260

Browse files
Update README.md
1 parent 2ad34b6 commit e426260

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ module.exports = {
122122

123123
#### `requirePattern`
124124

125-
Type: `String`
125+
Type: `RegExp`
126126

127127
Default: `/^@drupal\(([^\)]+)\)$/`
128128

@@ -132,8 +132,8 @@ The pattern to use for detecting drupal library dependencies.
132132
module.exports = {
133133
plugins: [
134134
new DrupalLibrariesPlugin({
135-
// always use the chunk hash as the library name.
136-
libraryPattern: /^(jquery|/
135+
// Only pick up require('jquery') or require('Drupal') statements.
136+
libraryPattern: /^(jquery|Drupal)$/
137137
})
138138
],
139139
};

0 commit comments

Comments
 (0)