Merge pull request #4009 from dmitrylyzo/fix-legacy-1

This commit is contained in:
Bill Thornton 2022-10-08 16:57:08 -04:00 committed by GitHub
commit a77b003817
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

10
cssnano.config.js Normal file
View file

@ -0,0 +1,10 @@
module.exports = {
preset: [
'default',
// Turn off `mergeLonghand` because it combines `padding-*` and `margin-*`,
// breaking fallback styles.
// https://github.com/cssnano/cssnano/issues/1163
// https://github.com/cssnano/cssnano/issues/1192
{ mergeLonghand: false }
]
};

View file

@ -121,7 +121,7 @@ const config = {
}, },
{ {
test: /\.(js|jsx)$/, test: /\.(js|jsx)$/,
exclude: /node_modules[\\/](?!@uupaa[\\/]dynamic-import-polyfill|blurhash|date-fns|epubjs|flv.js|libarchive.js|marked|react-router|screenfull)/, exclude: /node_modules[\\/](?!@uupaa[\\/]dynamic-import-polyfill|@remix-run[\\/]router|blurhash|date-fns|epubjs|flv.js|libarchive.js|marked|react-router|screenfull)/,
use: [{ use: [{
loader: 'babel-loader', loader: 'babel-loader',
options: { options: {