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
Don't read internal files from postcss #980
Comments
Why it makes it difficult to split bundle? Anyway we have |
Not sure about all bundlers, but some (like browserify) treat each file as its own module. So if you specify that
Not sure I understand? |
There is no 1 Just open So anyway your bundle will have separated file for |
I know it isn't one big file. However, if you only require i.e. if bundle A contains |
TL;DR it makes my life a lot easier. Is there a specific reason we can't do |
Yeap, it is not big deal, I can replace it. Do you want to send PR? |
Sure, I can do that. |
Currently autoprefixer does things like
const list = require('postcss/lib/list');
instead of
const list = require('postcss').list;
This makes bundling autoprefixer, postcss, and other postcss plugins with bundle splitting very difficult to do without duplicating parts of postcss.
Additionally, it could be argued this is breaking point 2.4 the plugin guidelines, since the paths aren't documented in the API docs. This prevents postcss from changing its internal directory structure.
Would you be open to changing this?
The text was updated successfully, but these errors were encountered: