From c1bc62841fb3c941e91ebb81276a7f4d13b9bd7f Mon Sep 17 00:00:00 2001 From: Yahav Date: Mon, 22 Nov 2021 09:10:05 +0200 Subject: [PATCH] Add webpack 5 import instructions to readme to address the following: https://github.com/PaperStrike/Pjax/issues/239 --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index e25c288..3f82863 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,12 @@ Import the default value from `pjax.esm.js` or `pjax.esm.min.js` as: import Pjax from './dist/pjax.esm.js'; ``` +##### To import as ES module with Webpack 5 bundler + +```js +import Pjax from '@sliphua/pjax' +``` + ## What Pjax Does _In short, ONE fetch with a `pushState` call._