cloudnode-pro / components

Base classes for web components
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Specify browser targets for the project #27

Closed coderabbitai[bot] closed 3 hours ago

coderabbitai[bot] commented 4 hours ago

As requested by @zefir-git, this issue is to specify the browser targets (es2020, Edge 88, Firefox 78, Chrome 87, Safari 14) for the project.

Reference PR: https://github.com/cloudnode-pro/components/pull/26 Reference Comment: https://github.com/cloudnode-pro/components/pull/26#discussion_r1817693658

zefir-git commented 3 hours ago

@coderabbitai Can you create a PR

coderabbitai[bot] commented 3 hours ago

[!TIP] For best results, initiate chat on the files or code changes.

@zefir-git, I'd be happy to help you specify the browser targets for the project. You can update your project configuration to include the following browser targets:

If you're using a package.json file with Browserslist, add or update the browserslist field:

{
  "browserslist": [
    "Chrome >= 87",
    "Edge >= 88",
    "Firefox >= 78",
    "Safari >= 14",
    "es2020"
  ]
}

Alternatively, if you're using Babel with a configuration file like babel.config.json or babel.config.js, you can specify the targets as:

{
  "presets": [
    [
      "@babel/preset-env",
      {
        "targets": {
          "chrome": "87",
          "edge": "88",
          "firefox": "78",
          "safari": "14",
          "esmodules": true
        }
      }
    ]
  ]
}

This configuration ensures that your project targets:

Add these configurations to your project, and it should align with the specified browser targets. Let me know if you need further assistance!