doc: add style/sass/less export conditions #46994
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prior art
Webpack's sass-loader: https://github.com/webpack-contrib/sass-loader/blob/75dcfde159fe5508861f36ca577f71630c0d623e/src/utils.js#L531-L545
Webpack's less-loader: https://github.com/webpack-contrib/less-loader/blob/c26b99e311f7600e7bc8d5c8de3f75967e94df26/src/utils.js#L35-L38
Vite: https://github.com/vitejs/vite/blob/07579ed529ad257af4904942dfc38990761503e9/packages/vite/src/node/plugins/css.ts#L731-L761
Parcel (CSS): https://github.com/parcel-bundler/parcel/blob/19fe7ff00f28f44300fe803c4e594b9fc02b25ad/packages/transformers/css/src/CSSTransformer.js#L229
Parcel (LESS): https://github.com/parcel-bundler/parcel/blob/19fe7ff00f28f44300fe803c4e594b9fc02b25ad/packages/transformers/less/src/LessTransformer.js#L156
Parcel (SASS): https://github.com/parcel-bundler/parcel/blob/19fe7ff00f28f44300fe803c4e594b9fc02b25ad/packages/transformers/sass/src/SassTransformer.js#L167