Skip to content
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

If the resolved partial is extensionless, then find a file like it #8

Closed
mrjoelkemp opened this issue May 18, 2016 · 0 comments
Closed

Comments

@mrjoelkemp
Copy link
Collaborator

mrjoelkemp commented May 18, 2016

When you're importing templates or styles, it's incorrect to assume that they have the same extension as the file importing them.

Consumers shouldn't have to guard against this non-existent result.

  • Since we don't load require plugins, we don't know what the correct file extension should be.
    • The hogan loader hardcodes that it resolves .mustache files. We have no way of knowing that outside of the plugin.
  • Think about minified files that look like they're a real file (they have .min as an extension).
  • Do all partial resolutions result in a path without a file extension?
mrjoelkemp added a commit to dependents/node-dependency-tree that referenced this issue May 21, 2016
There's no need to skip files that use loaders. In fact, we want
those files to be properly resolved since they're part of the
dependency tree of a module.

We skipped them only because module-lookup-amd couldn't handle
those files.

Ref dependents/node-module-lookup-amd#8
mrjoelkemp added a commit to dependents/node-dependents-editor-backend that referenced this issue May 25, 2016
mrjoelkemp added a commit to dependents/node-dependents-editor-backend that referenced this issue May 25, 2016
mrjoelkemp added a commit to dependents/node-dependents-editor-backend that referenced this issue May 25, 2016
mrjoelkemp added a commit to dependents/node-dependents-editor-backend that referenced this issue May 25, 2016
mrjoelkemp added a commit to dependents/node-dependency-tree that referenced this issue Jun 3, 2016
There's no need to skip files that use loaders. In fact, we want
those files to be properly resolved since they're part of the
dependency tree of a module.

We skipped them only because module-lookup-amd couldn't handle
those files.

Ref dependents/node-module-lookup-amd#8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant