Security upgrades
This commit is contained in:
16
node_modules/@material-ui/styles/esm/jssPreset/jssPreset.js
generated
vendored
Normal file
16
node_modules/@material-ui/styles/esm/jssPreset/jssPreset.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import functions from 'jss-plugin-rule-value-function';
|
||||
import global from 'jss-plugin-global';
|
||||
import nested from 'jss-plugin-nested';
|
||||
import camelCase from 'jss-plugin-camel-case';
|
||||
import defaultUnit from 'jss-plugin-default-unit';
|
||||
import vendorPrefixer from 'jss-plugin-vendor-prefixer';
|
||||
import propsSort from 'jss-plugin-props-sort'; // Subset of jss-preset-default with only the plugins the Material-UI components are using.
|
||||
|
||||
export default function jssPreset() {
|
||||
return {
|
||||
plugins: [functions(), global(), nested(), camelCase(), defaultUnit(), // Disable the vendor prefixer server-side, it does nothing.
|
||||
// This way, we can get a performance boost.
|
||||
// In the documentation, we are using `autoprefixer` to solve this problem.
|
||||
typeof window === 'undefined' ? null : vendorPrefixer(), propsSort()]
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user