Allow importing package without webpack
This commit is contained in:
parent
2d3ecc8f98
commit
260d32795a
1 changed files with 11 additions and 8 deletions
7
frontend/sync-client/src/utils/package-version.ts
Normal file
7
frontend/sync-client/src/utils/package-version.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
declare const __CURRENT_VERSION__: string;
|
||||
|
||||
/** Webpack replaces this identifier in bundles; source imports use a stable fallback. */
|
||||
export const packageVersion =
|
||||
typeof __CURRENT_VERSION__ === "undefined"
|
||||
? "development"
|
||||
: __CURRENT_VERSION__;
|
||||
Loading…
Reference in a new issue