Skip to content

Commit

Permalink
window下数组目录多态校验报错
Browse files Browse the repository at this point in the history
  • Loading branch information
yangyiliang committed Feb 1, 2019
1 parent b2aa4bb commit f1b236d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/chameleon-loader/src/interface-check/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const parser = require('@babel/parser');
const traverse = require('babel-traverse');
const generate = require("babel-generator");
const {getDefines, parsePlugins} = require('runtime-check');
const cmlUtils = require('chameleon-tool-utils');

/**
* 处理对象的函数
Expand Down Expand Up @@ -333,6 +334,9 @@ function getCheckCode(interfaceCode, cmlCode, interfacePath, cmlPath, cmlType, e
let result = '';
let wrapperCode = '';
if (interfacePath) {
interfacePath = path.resolve(interfacePath);
interfacePath = cmlUtils.handleWinPath(interfacePath);

result += `const __INTERFACE__FILEPATH="${interfacePath}"`;
}
if (cmlType === 'weex') {
Expand Down

0 comments on commit f1b236d

Please sign in to comment.