Add sizzle selector dependency to node module build.
This commit is contained in:
Родитель
d3c3324386
Коммит
7ac9a5db20
4
index.js
4
index.js
|
@ -1,5 +1,5 @@
|
|||
var self = this,
|
||||
globals = ["document", "window", "navigator", "CSSStyleDeclaration", "d3"],
|
||||
globals = ["document", "window", "navigator", "CSSStyleDeclaration", "d3", "Sizzle"],
|
||||
globalValues = {};
|
||||
|
||||
globals.forEach(function(global) {
|
||||
|
@ -11,6 +11,8 @@ window = document.createWindow();
|
|||
navigator = window.navigator;
|
||||
CSSStyleDeclaration = window.CSSStyleDeclaration;
|
||||
|
||||
Sizzle = require('sizzle');
|
||||
|
||||
require("./d3.v2");
|
||||
|
||||
module.exports = d3;
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
},
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"jsdom": "0.2.12"
|
||||
"jsdom": "0.2.12",
|
||||
"sizzle": "*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"uglify-js": "1.2.3",
|
||||
|
|
Загрузка…
Ссылка в новой задаче