-
Notifications
You must be signed in to change notification settings - Fork 115
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
JSPM Lookups #194
JSPM Lookups #194
Conversation
@@ -23,7 +24,7 @@ module.exports = function(id, base, options) { | |||
basedir: base, | |||
moduleDirectory: moduleDirectories, | |||
paths: paths, | |||
extensions: [ ".css" ], | |||
extensions: [ ".css", ".sss" ], |
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.
Please don't add this. You can handle this via option.
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.
Okay, I'll change it back.
I reduced the integration for jspm a bit. This was mainly a try to solve the test puzzle for jspm. The current versions seems to be the minimum viable one to add jspm packages resolving... |
"./lib/resolve-id": "@empty" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": {} |
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.
are the empty field required?
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.
You are really caring about the details, are you? - That's welcome.
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 will try with leaving them out...
Looks good without dependencies and devDependencies. |
Would it be possible to merge this into master and do a new release? Or is there anything outstanding we have to work before this could happen? |
Released as 8.1.1 |
Adding Also it seems a slight shame that adding jspm support means that all users have the additional complexity overhead of the jspm modules added to their dependency trees, even if they don't use jspm ... hence problems like the above ... |
I think we should move this to peerDependencies and only import in a jspm context. Will open an issue about that. |
@swernerx any thoughts about the security issues? |
I use postcss-import in webpack postcss-loader |
Added support for JSPM based lookups.
I have not yet any tests for jspm lookup in this package, but in the origin/dependency project (would require some jspm installs which I am not sure should be done here).