4

Currently, $ npm run build compiles files from src/ into /build and everything is working fine. However, there's some specific TypeScript file, src/integer.ts, that I want to compile to its own JavaScript file, build/integer.js and all the other files to be compiled "normally".

This is the project structure:

/src
/build

Here's the package.json file:

"dependencies": {
    "react-scripts": "3.4.1",
}
...
"scripts": {
     "build": "react-scripts build",
}
M. M
  • 520
  • 1
  • 5
  • 9

1 Answers1

-1

I don't understand your question. Both the esnext javascript and typescript will be compiled to es5. What special compilation do you need?

drdgvhbh
  • 510
  • 4
  • 4