diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-08-30 17:21:18 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-08-30 17:21:18 +0800 |
| commit | efbc2ffe6a1ee5ec38a4396305561d6515d0943e (patch) | |
| tree | 2b4c94f18f2c792dfda813050755d5c0273fae22 /node_modules/swup/src/config | |
| parent | 43acceb75957c880a5ba5a31aae221394a36d5f6 (diff) | |
node fixes, updates
Diffstat (limited to 'node_modules/swup/src/config')
| -rw-r--r-- | node_modules/swup/src/config/version.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/swup/src/config/version.ts b/node_modules/swup/src/config/version.ts new file mode 100644 index 00000000..b59b1a2b --- /dev/null +++ b/node_modules/swup/src/config/version.ts @@ -0,0 +1,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; |
