From 5a5b9ac9f465b3bea6b96c45793ac285fb12feb4 Mon Sep 17 00:00:00 2001 From: swyx Date: Tue, 7 May 2019 07:22:14 -0400 Subject: [PATCH] use parcel's aliasing for react template example deps (#88) use parcel's aliasing for react template example deps. closes https://github.com/palmerhq/tsdx/issues/64 --- templates/react/example/package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/react/example/package.json b/templates/react/example/package.json index 3ea660333..99f135f5a 100644 --- a/templates/react/example/package.json +++ b/templates/react/example/package.json @@ -7,10 +7,12 @@ "start": "parcel index.html" }, "dependencies": { - "react": "^16.8.6", - "react-dom": "^16.8.6", "react-app-polyfill": "^1.0.0" }, + "alias": { + "react": "../node_modules/react", + "react-dom": "../node_modules/react-dom" + }, "devDependencies": { "@types/react": "^16.8.15", "@types/react-dom": "^16.8.4",