Commit updated Javascript packages
This commit is contained in:
28
build/javascript/node_modules/tailwindcss/lib/util/createPlugin.js
generated
vendored
Normal file
28
build/javascript/node_modules/tailwindcss/lib/util/createPlugin.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
function createPlugin(plugin, config) {
|
||||
return {
|
||||
handler: plugin,
|
||||
config
|
||||
};
|
||||
}
|
||||
|
||||
createPlugin.withOptions = function (pluginFunction, configFunction = () => ({})) {
|
||||
const optionsFunction = function (options) {
|
||||
return {
|
||||
handler: pluginFunction(options),
|
||||
config: configFunction(options)
|
||||
};
|
||||
};
|
||||
|
||||
optionsFunction.__isOptionsFunction = true;
|
||||
return optionsFunction;
|
||||
};
|
||||
|
||||
var _default = createPlugin;
|
||||
exports.default = _default;
|
||||
Reference in New Issue
Block a user