Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Oct 4, 2021
1 parent 56ee4fb commit 26d390d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/plugin-import-css/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,10 @@ class ImportCssResource extends ResourceInterface {
this.contentType = 'text/javascript';
}


// https://github.com/ProjectEvergreen/greenwood/issues/700
async shouldResolve(url) {
console.debug('shouldIntercept url', url);
const isCssInDisguise =
url.endsWith(this.extensions[0]) &&
fs.existsSync(`${url}.js`)
const isCssInDisguise = url.endsWith(this.extensions[0]) && fs.existsSync(`${url}.js`);

console.debug('isCssInDisguise', isCssInDisguise);
console.debug('***************');
return Promise.resolve(isCssInDisguise);
}

Expand Down

0 comments on commit 26d390d

Please sign in to comment.