내용으로 건너뛰기

Will aws handle transpiling for me?

0

I am using Vite for my React app which uses .jsx file extensions rather than .js - Apparently I need to transpile them into .js to run on browser - If I install a transpiler like Babel into my node package manager will aws handle the rest or is there more I need to set up?

질문됨 3년 전80회 조회
1개 답변
0

5. CI/CD with AWS CodePipeline

you can use AWS CodePipeline to build and deploy your app.

  • Configure CodeBuild within your pipeline to run the npm run build command, ensuring your JSX files are transpiled.

Example of a buildspec.yml file for AWS CodeBuild:

version: 0.2

phases:
  install:
    commands:
      - npm install
  build:
    commands:
      - npm run build
artifacts:
  files:
    - '**/*'

6. Additional Setup

  • Ensure that your Vite project is properly configured for production builds, including optimizations and environment settings.

Official AWS Documentation:

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.