As previously explained in the (failed) PR #33, the package currently uses the syntax export type { TypeName } from './lib/module'; to re-export PlausibleOptions and EventOptions. That syntax has only been supported since TypeScript 3.8 (see the changelog here). Admittedly, that is a version from February 2020, so it has been supported already for awhile. In older versions, the following syntax error occurs on build when attempting to use the library:
Expected behavior
Unfortunately we are stuck in TypeScript 3.4 with no easy upgrade path, and it would be nice if some older versions of TypeScript could be supported.
Steps to reproduce
Steps:
Install normally in an environment with TS 3.4 (or any other TS < 3.8)
Set it up
Try to use it
Your Environment
Device: Desktop PC
OS: Ubuntu 22.04
TypeScript version 3.4
Additional context
I am currently preparing a new PR that fixes this issue for TS 3.4 and up (and older versions also) and will continue to work for newer versions also, without breaking the build/tests
Versions
Describe the bug
As previously explained in the (failed) PR #33, the package currently uses the syntax
export type { TypeName } from './lib/module';
to re-exportPlausibleOptions
andEventOptions
. That syntax has only been supported since TypeScript 3.8 (see the changelog here). Admittedly, that is a version from February 2020, so it has been supported already for awhile. In older versions, the following syntax error occurs on build when attempting to use the library:Expected behavior
Unfortunately we are stuck in TypeScript 3.4 with no easy upgrade path, and it would be nice if some older versions of TypeScript could be supported.
Steps to reproduce
Steps:
Your Environment
Additional context
I am currently preparing a new PR that fixes this issue for TS 3.4 and up (and older versions also) and will continue to work for newer versions also, without breaking the build/tests