swup
Version:
Versatile and extensible page transition library for server-rendered websites
13 lines (9 loc) • 355 B
text/typescript
/**
* Import swup's current version from package.json
*/
// This will only work in webpack 4
// export { version as default } from '../../package.json';
// This will work in microbundle + webpack 5, but won't treeshake in webpack 4
// @ts-ignore: package.json is outside of rootDir
import pckg from '../../package.json';
export default pckg.version;