1
我正在嘗試開發一個brackets.io擴展並計劃使用第三方npm庫?我可以導入它嗎?第三方節點模塊是否可以導入到擴展中?
define(function (require, exports, module) {
"use strict";
var ExtensionUtils = brackets.getModule("utils/ExtensionUtils");
var CommandManager = brackets.getModule("command/CommandManager");
var Menus = brackets.getModule("command/Menus");
var modulePath = ExtensionUtils.getModulePath(module);
var thirdPartyLib = require('./node_modules/lib/lib.js'); // this is throwing an error!
});