summaryrefslogtreecommitdiff
path: root/node_modules/babel-plugin-polyfill-corejs2/lib
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/babel-plugin-polyfill-corejs2/lib')
-rw-r--r--node_modules/babel-plugin-polyfill-corejs2/lib/helpers.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/babel-plugin-polyfill-corejs2/lib/helpers.js b/node_modules/babel-plugin-polyfill-corejs2/lib/helpers.js
index e712e70d..28b90eb1 100644
--- a/node_modules/babel-plugin-polyfill-corejs2/lib/helpers.js
+++ b/node_modules/babel-plugin-polyfill-corejs2/lib/helpers.js
@@ -9,6 +9,7 @@ function hasMinVersion(minVersion, runtimeVersion) {
// build process, and we want to assume that all versions are satisfied so
// that the built output will include all definitions.
if (!runtimeVersion || !minVersion) return true;
+ runtimeVersion = String(runtimeVersion);
// semver.intersects() has some surprising behavior with comparing ranges
// with preprelease versions. We add '^' to ensure that we are always