From 7f6a6eeab2d9f0169d094197bb00436a1164661c Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Wed, 21 Oct 2020 21:55:30 -0400 Subject: [PATCH] Explicitly exclude pre-Chromium Edge from CDN builds The >1% was sometimes including this and other times not depending on CI vs. local, couldn't quite figure out why, guessing some difference in version of caniuse-lite. --- __tests__/cli.test.js | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/__tests__/cli.test.js b/__tests__/cli.test.js index 27e4a1411..00b05d98a 100644 --- a/__tests__/cli.test.js +++ b/__tests__/cli.test.js @@ -87,13 +87,13 @@ describe('cli', () => { it('compiles CSS file with autoprefixer', () => { return cli(['build', inputCssPath]).then(() => { - expect(process.stdout.write.mock.calls[0][0]).toContain('-ms-input-placeholder') + expect(process.stdout.write.mock.calls[0][0]).toContain('-webkit-max-content') }) }) it('compiles CSS file without autoprefixer', () => { return cli(['build', inputCssPath, '--no-autoprefixer']).then(() => { - expect(process.stdout.write.mock.calls[0][0]).not.toContain('-ms-input-placeholder') + expect(process.stdout.write.mock.calls[0][0]).not.toContain('-webkit-max-content') }) }) }) diff --git a/package.json b/package.json index 52d707e58..b87ecc261 100644 --- a/package.json +++ b/package.json @@ -74,6 +74,7 @@ }, "browserslist": [ "> 1%", + "not edge <= 18", "not ie 11", "not op_mini all" ],