UNPKG

@areslabs/alita-core

Version:

alita-core

28 lines (23 loc) 691 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; var _basetran = _interopRequireDefault(require("../basetran")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * Copyright (c) Areslabs. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ /** * 基本js文件的loader,处理小程序和RN环境的一些差异 * @param context */ function _default(context) { const filepath = this.resourcePath; context.ast = (0, _basetran.default)(context.ast, filepath, this); return context; }