linkedin / eyeglass

NPM Modules for Sass
741 stars 60 forks source link

Simplify URI.system() #248

Closed mikrostew closed 4 years ago

mikrostew commented 4 years ago

This simplifies what URI.system() does to optimize its performance, since it is called many times (on the order of 800,000 times in our codebase).

This is what is used to do:

Because this function is only called with file and directory paths, and contains some duplication of effort, it can be reduced to doing this:

mikrostew commented 4 years ago

Hmm, looks like this failed on Node 12 in ember-cli-eyeglass due to a build error with babel

lerna ERR! yarn run test stderr:
Build Error (broccoli-persistent-filter:Babel > [Babel: ember-asset-loader]) in ember-asset-loader/test-support/loaded-asset-state.js
No "exports" main resolved in /home/travis/build/linkedin/eyeglass/node_modules/@babel/helper-compilation-targets/package.json
chriseppstein commented 4 years ago

Cherry-picked to current release as a81e356ebf6883fe874dbeae358e4ca161c7df46.

chriseppstein commented 4 years ago

Thank you for the patches!

Released as dist-tag v2:

Released as dist-tag current: