UNPKG

san-hot-loader

Version:
24 lines (19 loc) 457 B
/** * Copyright (c) Baidu Inc. All rights reserved. * * This source code is licensed under the MIT license. * See LICENSE file in the project root for license information. * * @file runtime utils * @author clark-t */ function esm(obj) { return obj.__esModule ? obj.default : obj; } function getExports(mod) { return esm(mod.exports || Object.getPrototypeOf(mod).exports); } module.exports = { esm: esm, getExports: getExports };