mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-22 04:05:42 +00:00
8 lines
384 B
JavaScript
8 lines
384 B
JavaScript
const fs = require("fs");
|
|
const path = require("path");
|
|
const browserslist = require("browserslist-useragent-regexp");
|
|
|
|
const userAgentRegExp = browserslist.getUserAgentRegExp({ allowHigherVersions: true });
|
|
const checkFunction = `export const supportedBrowsers = ${userAgentRegExp};`;
|
|
fs.writeFileSync(path.resolve(__dirname, "../javascripts/supported-browsers.js"), checkFunction);
|