Skip to content

Commit

Permalink
refactor: use startsWith (#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 authored and evilebottnawi committed Jan 10, 2020
1 parent 22c597b commit 4834287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/importsToResolve.js
Expand Up @@ -60,7 +60,7 @@ function importsToResolve(url) {
// 1. Try to resolve files with `scss`, `sass` and `css` extensions.
// 2. Try to resolve directory with `_index` or `index` filename.
// 3. Send the original url to webpack resolver, maybe it's alias.
if (basename.charAt(0) === '_') {
if (basename.startsWith('_')) {
return [
`${request}.scss`,
`${request}.sass`,
Expand Down

0 comments on commit 4834287

Please sign in to comment.