Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use babel and babel-preset-env #5

Closed
graingert opened this issue Nov 28, 2016 · 1 comment
Closed

use babel and babel-preset-env #5

graingert opened this issue Nov 28, 2016 · 1 comment

Comments

@graingert
Copy link

Using the following babel config you can encode your supported browsers:

{
  "presets": [
    ["env", {
      "targets": {
        "chrome": 55,
        "firefox": 50,
      },
      "modules": false,
    }]
  ]
}

This way you'll be able to use all features of es2016 and those features not supported in chrome or firefox will be automatically translated by babel.

modules: false is set because module bundlers need the "import/export" keywords to create an optimized bundle.

@n1474335
Copy link
Member

Completed in #95

wolfyu1991 referenced this issue in wolfyu1991/CTFx Feb 23, 2024
* Update tesseract, fix API for tesseract 3.0

* Linting fixes

* Reverted to local copies of Tesseract trainddata in order to remain self-contained.

* 9.46.5

* Added node builder script to package.json

Co-authored-by: Sean Marpo <smarpo@atlassian.com>
Co-authored-by: n1474335 <n1474335@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants