3.0.1 • Published 1 year ago

@scaleway/outdated-browser v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@scaleway/outdated-browser

A small web script to display outdated banner


Install

$ pnpm add @scaleway/outdated-browser

Usage

This package is intended to be used in tandem with a bundler Only one parameter is required, a regex of accepted browser user agents

Example with webpack:

import { getUserAgentRegExp } from 'browserslist-useragent-regexp'

const SUPPORTED_BROWSERS = getUserAgentRegExp({
  browsers: '> 1%, last 2 versions, Firefox ESR, not IE > 0, not IE_Mob > 0',
  allowHigherVersions: true,
  ignoreMinor: true,
  ignorePatch: true,
}).toString()

export default {
  entry: {
    outdated: '@scaleway/outdated-browser',
    main: './src/index.tsx',
  },
  plugins: [
    new webpack.DefinePlugin({
      SUPPORTED_BROWSERS,
    }),
  ],
}
3.0.1

1 year ago

3.0.0

1 year ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago