Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Shim alternative for genType RescriptCore types

$
0
0

Thanks for taking the time to respond. It looks like per the docs linked above shims have been deprecated and no longer work.

I’m using 11.1 and here’s my config:

{
  "name": "app",
  "sources": [
    {
      "dir": "src",
      "subdirs": true
    },
    {
      "dir": "packages",
      "subdirs": true
    }
  ],
  "package-specs": [
    {
      "module": "esmodule",
      "in-source": true
    }
  ],
  "reanalyze": {
    "suppress": ["src/bindings", "src/common/pages"]
  },
  "suffix": ".js",
  "jsx": { "version": 4 },
  "bs-dependencies": ["@rescript/core", "@rescript/react"],
  "bsc-flags": ["-open RescriptCore", "-open Global"],
  "gentypeconfig": {
    "module": "esnext",
    "moduleResolution": "bundler",
    "generatedFileExtension": ".gen.tsx"
  }
}

Viewing all articles
Browse latest Browse all 2592

Trending Articles