blob: b59b1a2b91490d5d91b0c39d4663bb7196f67bc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/**
* 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;
|