{"id":16402647,"url":"https://github.com/saltyshiomix/webpack-typescript-react-starter","last_synced_at":"2025-03-21T02:33:17.280Z","repository":{"id":55649261,"uuid":"157760221","full_name":"saltyshiomix/webpack-typescript-react-starter","owner":"saltyshiomix","description":"Webpack + TypeScript + React = ❤️","archived":false,"fork":false,"pushed_at":"2020-11-22T17:25:48.000Z","size":2929,"stargazers_count":58,"open_issues_count":0,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-15T20:47:49.007Z","etag":null,"topics":["react","typescript","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saltyshiomix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-15T19:15:06.000Z","updated_at":"2023-08-17T15:35:50.000Z","dependencies_parsed_at":"2022-08-15T05:31:09.270Z","dependency_job_id":null,"html_url":"https://github.com/saltyshiomix/webpack-typescript-react-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltyshiomix%2Fwebpack-typescript-react-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltyshiomix%2Fwebpack-typescript-react-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltyshiomix%2Fwebpack-typescript-react-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saltyshiomix%2Fwebpack-typescript-react-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saltyshiomix","download_url":"https://codeload.github.com/saltyshiomix/webpack-typescript-react-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244102839,"owners_count":20398386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react","typescript","webpack"],"created_at":"2024-10-11T05:46:50.910Z","updated_at":"2025-03-21T02:33:16.900Z","avatar_url":"https://github.com/saltyshiomix.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003eWebpack + TypeScript + React = ❤️\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/saltyshiomix/webpack-typescript-react-starter.svg\" alt=\"Package License (MIT)\"\u003e\n\u003c/p\u003e\n\nAs of Babel v7, now we can handle `.ts` or `.tsx` files same as `.js` or `.jsx` files like this:\n\n```js\n// webpack.config.js\n\nmodule.exports = {\n  resolve: {\n    extensions: ['.js', '.jsx', '.ts', '.tsx'],\n  },\n  module: {\n    rules: [\n      {\n        test: [/\\.jsx?$/, /\\.tsx?$/],\n        use: 'babel-loader',\n        exclude: /node_modules/,\n      },\n    ],\n  },\n}\n```\n\n**Use `babel-loader` to `/\\.tsx?$/` ?!**\n\nYes, `babel-loader`. See `.babelrc`:\n\n```json\n{\n  \"presets\": [\n    \"@babel/env\",\n    \"@babel/react\",\n    \"@babel/typescript\"\n  ]\n}\n```\n\nThanks to `@babel/preset-typescript`, we can handle `/\\.tsx?$/` files same as `/\\.jsx?$/` files :)\n\n## Usage\n\n```bash\n# installation\n$ yarn\n\n# development mode\n# it automatically opens `http://localhost:8080` in your default browser,\n# and you'll see \"Webpack + TypeScript + React = ❤️\"\n$ yarn dev\n\n# check types\n$ yarn check-types\n\n# production build\n$ yarn build\n\n# production mode\n$ yarn start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaltyshiomix%2Fwebpack-typescript-react-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaltyshiomix%2Fwebpack-typescript-react-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaltyshiomix%2Fwebpack-typescript-react-starter/lists"}