vigour-io / postcssify

Browserify transform for postcss
ISC License
4 stars 1 forks source link

Postcssify breaking extension resolution #30

Closed kevindente closed 8 years ago

kevindente commented 8 years ago

For some reason when I include postcssify as a browerify transform, it breaks the ability to resolve .jsx files without the extension (eg import File from 'File" stops working, I have to do import File from 'File.jsx'). If I take out postcssify it starts working again (I've specific .jsx in the --extension option for browserify). Any idea why this would be?

kevindente commented 8 years ago

Traced through the code a bit, and it looks like collect() is calling resolve(), but not specifying the extensions in the options, so resolve fails on the jsx file.

youzi commented 8 years ago

@kevindente Thanks for pointing out this issue and if you'd like to make a modification, you are welcome.

This module currently needs a lot of work, and is currently in the very minimal state that we can use it internally.