Comparing version 0.0.1 to 0.0.2
@@ -10,3 +10,3 @@ { | ||
"description": "beef - brwoser end equals framework", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"repository": { | ||
@@ -13,0 +13,0 @@ "type": "git", |
beef -- 牛排 | ||
[2]: http://image4.buy.ccb.com/images/59288134/1373701097874_3.jpg | ||
-- 解决前后端模块化公用;面向前端modules标准化模块,支持前端模块在服务复用 | ||
@@ -10,2 +10,6 @@ | ||
* 支持常用插件形式, text, json, less, css | ||
* 支持自定义扩展插件 | ||
* 支持自定义扩展插件 | ||
* | ||
![fresh beef](http://image4.buy.ccb.com/images/59288134/1373701097874_3.jpg) |
@@ -30,5 +30,7 @@ var Module = require('module'); | ||
} | ||
// relativeId = require('./config').resolve(relativeId, module); | ||
var fileName = Module._resolveFilename(relativeId, module); | ||
if (Array.isArray(fileName)) { | ||
@@ -46,4 +48,5 @@ fileName = fileName[0]; | ||
requireModule.brow = require('./brow'); | ||
// requireModule.brow = require('./brow'); | ||
// requireModule.config = require('./config').config; | ||
module.exports = requireModule; |
// 只有在入口文件才采用侵入方式 | ||
var require = require('../src/require'); | ||
require(['./source/amd'], function(amd) { | ||
require.config({ | ||
baseURL: './source' | ||
}); | ||
require(['./amd'], function(amd) { | ||
console.log(amd); | ||
}); | ||
var text = require('text!./source/text.txt'); | ||
var text = require('text!./text.txt'); | ||
@@ -13,4 +18,4 @@ console.log(text); | ||
var css = require('css!./source/style.less'); | ||
var css = require('css!./style.less'); | ||
console.log(css); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
6453
152
15
10