-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(compiler-sfc): export dependencies for plain css and css preproc… #1278
Conversation
less/less.js#3508. The less imports need next version publish.Them already fix it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add tests for these?
preprocessOptions: { | ||
// test with file will get error which `import.scss is not find` | ||
importer: function(url: string, prev: string, done: string) { | ||
if (url === 'import.scss') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I always got error which import.scss is not find
. I try mock fs and path ,but that not work.
other, the test.scss will be parsed with 'http://localhost/test.scss'.
I don‘t reslove the error ... and need you take a look.
Otherwise dart-sass thinks it is running in the browser due to jsdom
6751a86
to
4592bc2
Compare
I figured out the weird testing issues - Jest is running in jsdom env by default and that makes |
…essor
@import