スキップしてコンテンツを表示

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:

回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ