diff options
author | Florian Dold <florian@dold.me> | 2021-08-20 13:01:35 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-20 13:18:55 +0200 |
commit | a3687d84ba011639f6bd1b25ea8ea906fcc5b1f3 (patch) | |
tree | 64bac5d5e0c5dc9dfabb23632d8b56b61d729d01 /packages/taler-util/src/globbing | |
parent | 45f134699076b7708ff23b16e233e67dc866175e (diff) | |
download | wallet-core-a3687d84ba011639f6bd1b25ea8ea906fcc5b1f3.tar.xz |
separate node entry points
Signed-off-by: Florian Dold <florian@dold.me>
Diffstat (limited to 'packages/taler-util/src/globbing')
-rw-r--r-- | packages/taler-util/src/globbing/minimatch.ts | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/packages/taler-util/src/globbing/minimatch.ts b/packages/taler-util/src/globbing/minimatch.ts index 54779623a..b23de4e92 100644 --- a/packages/taler-util/src/globbing/minimatch.ts +++ b/packages/taler-util/src/globbing/minimatch.ts @@ -7,27 +7,11 @@ purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. */ - import { expand } from "./brace-expansion.js"; -const nodejs_path = (function () { - let path: typeof import("path"); - return function () { - if (!path) { - /** - * need to use an expression when doing a require if we want - * webpack not to find out about the requirement - */ - const _r = "require"; - path = module[_r]("path"); - } - return path; - }; -})(); - let path = { sep: "/" }; try { - path.sep = nodejs_path().sep; + path.sep = require("path").sep; } catch (er) {} const GLOBSTAR = {}; |