We will be sunsetting Advisor during Jan, 2026 and will instead be providing information in Snyk Security DB.

You can begin to take advantage of Snyk Security DB today for a unified, package-centric experience.

How to use the inline-style-prefixer/lib/generator.generateFile function in inline-style-prefixer

To help you get started, we’ve selected a few inline-style-prefixer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github popcodeorg / popcode / src / services / inlineStylePrefixer / prefixData.gen.js View on Github external
module.exports = () => {
  const browserListForInlineStylePrefixer = {};

  for (const browser in browserList) {
    if (browser !== 'chromium') {
      browserListForInlineStylePrefixer[browser] = Number(browserList[browser]);
    }
  }

  const {prefixMap, plugins} = generateData(browserListForInlineStylePrefixer);

  return {code: generateFile(prefixMap, plugins, false)};
};