From 482e7ed12606f87754d69c12f59cf4a0959fa392 Mon Sep 17 00:00:00 2001 From: Peter Kieltyka Date: Mon, 28 Sep 2020 09:48:15 -0400 Subject: [PATCH 1/3] use babel instead of ts-loader --- webapp/config/webpack/paths.js | 56 + webapp/config/webpack/webpack.config.local.js | 56 +- webapp/package.json | 14 +- webapp/src/modules/home/index.tsx | 33 +- webapp/src/style/styled.ts | 2 + webapp/tsconfig.json | 11 +- webapp/yarn.lock | 1879 ++++++++++++++++- 7 files changed, 1978 insertions(+), 73 deletions(-) create mode 100644 webapp/config/webpack/paths.js diff --git a/webapp/config/webpack/paths.js b/webapp/config/webpack/paths.js new file mode 100644 index 0000000..235b62a --- /dev/null +++ b/webapp/config/webpack/paths.js @@ -0,0 +1,56 @@ +'use strict'; + +const path = require('path'); +const fs = require('fs'); +const getPublicUrlOrPath = require('react-dev-utils/getPublicUrlOrPath'); + +// Make sure any symlinks in the project folder are resolved: +// https://github.com/facebook/create-react-app/issues/637 +const appDirectory = fs.realpathSync(process.cwd()); +const resolveApp = (relativePath) => path.resolve(appDirectory, relativePath); + +// We use `PUBLIC_URL` environment variable or "homepage" field to infer +// "public path" at which the app is served. +// webpack needs to know it to put the right