From 4550c2432c0944ef734407ddb9c53e416ace762c Mon Sep 17 00:00:00 2001 From: swyx Date: Tue, 7 May 2019 00:53:01 -0400 Subject: [PATCH] use parcel's aliasing for react template example deps 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",