-
Notifications
You must be signed in to change notification settings - Fork 3
Conversation
modules.normal.push('whatwg-fetch'); | ||
} | ||
|
||
if (!detectIfBrowserHasFeature(targetPlatform, 'intersectionobserver')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@neenhouse caniuse
seems to return false
here regardless if the browser is modern or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and now we wait Nyalab/caniuse-api#90
@@ -494,19 +494,6 @@ | |||
"integrity": "sha512-gCubfBUZ6KxzoibJ+SCUc/57Ms1jz5NjHe4+dI2krNmU5zCPAphyLJYyTOg06ueIyfj+SaCUqmzun7ImlxDcKg==", | |||
"dev": true | |||
}, | |||
"@vrbo/nimbuild-webpack": { |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
@@ -30,7 +34,10 @@ async function getPolyfillString({ | |||
uaString | |||
}) { | |||
// Resolve base feature set based on include / exclude | |||
const features = getBaseFeatureModules({include, exclude}); | |||
const features = getBaseFeatureModules({ |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
expect(polyfills.entry).toMatchSnapshot(); | ||
expect(polyfills.script.length).toBeGreaterThan(15000); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
const browserslist = require("browserslist"); | ||
const { features, feature: readableFeature } = require("caniuse-lite"); | ||
|
||
const featuresList = Object.keys(features); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed? Seems to be unused.
try { | ||
data = readableFeature(features[feature]); | ||
} catch(e) { | ||
throw new ReferenceError(`Please provide a proper feature name. Cannot find ${feature}`); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
}); | ||
} | ||
|
||
throw new ReferenceError(`browser is an unknown version: ${browsers}`); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
"browserslist-useragent": "^3.0.2", | ||
"caniuse-api": "^3.0.0", |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Prettier formatting
- Code coverage
- Failing Unit Tests
d78bbfc
to
c82a006
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Peer reviewed with @underbyte - pushed PR commit, please confirm @underbyte
Description
Adding support for
intersection observer
to nimbuild.Motivation and Context
How Has This Been Tested?
Checklist: