UNPKG

@mentor-apm/react-sortable-tree

Version:

Drag-and-drop sortable component for nested data and hierarchies

16 lines (11 loc) 412 B
const Module = require("module"); const globalModuleCache = Module._cache; const internalModuleCache = Object.create(null); Module._cache = internalModuleCache; const node = require("./node"); Module._cache = globalModuleCache; const smsPath = require.resolve("source-map-support"); globalModuleCache[smsPath] = internalModuleCache[smsPath]; const register = node.default; register(); module.exports = node;