From bbf5b7f0c6319000e32b2111b00a0919d3bd2c19 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 4 May 2019 14:16:07 -0700 Subject: [PATCH] chore: update preact (#1174) * chore: update preact * fix preact --- package.json | 2 +- webpack/shared.config.js | 5 ++--- yarn.lock | 10 ++++------ 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 895f318f..134ec693 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "page-lifecycle": "^0.1.1", "performance-now": "^2.1.0", "pinch-zoom-element": "^1.1.1", - "preact": "^10.0.0-alpha.2", + "preact": "^10.0.0-beta.1", "prop-types": "^15.7.2", "quick-lru": "^4.0.0", "remount": "^0.11.0", diff --git a/webpack/shared.config.js b/webpack/shared.config.js index a7947eae..b5231301 100644 --- a/webpack/shared.config.js +++ b/webpack/shared.config.js @@ -8,9 +8,8 @@ const resolve = { extensions: ['.js', '.json', '.html'], mainFields: ['svelte', 'module', 'browser', 'main'], alias: { - 'react': 'preact/compat/dist/compat.js', - 'react-dom': 'preact/compat/dist/compat.js', - 'preact/hooks': 'preact/hooks/dist/hooks.js' + 'react': 'preact/compat/dist/compat.module.js', + 'react-dom': 'preact/compat/dist/compat.module.js' } } diff --git a/yarn.lock b/yarn.lock index 757926df..5cf9eefc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5783,12 +5783,10 @@ postcss@^7.0.14, postcss@^7.0.5, postcss@^7.0.6: source-map "^0.6.1" supports-color "^6.1.0" -preact@^10.0.0-alpha.2: - version "10.0.0-alpha.2" - resolved "https://registry.yarnpkg.com/preact/-/preact-10.0.0-alpha.2.tgz#61ba4f2ca20b75352ad5ed8aa239302df83dae74" - integrity sha512-8G0UFC0Sa/giqI/jR3LIHzj0ohsIC4wnB+8+XdpHFEZ5GmtFLmQgkrrkdR0EcEAdd38geClUSj30H8AEIO4OqA== - dependencies: - prop-types "^15.6.2" +preact@^10.0.0-beta.1: + version "10.0.0-beta.1" + resolved "https://registry.yarnpkg.com/preact/-/preact-10.0.0-beta.1.tgz#f7d524668db72ed74e99d447f09600fa4db0b186" + integrity sha512-1uhj3JXOEzEPUof5t/iQW5heEvTOpexwS0FLAjJQfgfT8OCXICyzI2TwkYyFJ+W9q9GsDmhZgFagH2G0akFveQ== prelude-ls@~1.1.2: version "1.1.2"