flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
55 lines (54 loc) • 2.11 kB
JavaScript
;
var __webpack_require__ = {};
(()=>{
__webpack_require__.d = (exports1, definition)=>{
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
enumerable: true,
get: definition[key]
});
};
})();
(()=>{
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
__webpack_require__.r = (exports1)=>{
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
value: 'Module'
});
Object.defineProperty(exports1, '__esModule', {
value: true
});
};
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
default: ()=>rspack
});
const build_namespaceObject = require("../cli/commands/build");
const dev_namespaceObject = require("../cli/commands/dev");
const external_index_cjs_namespaceObject = require("./index.cjs");
const rspack = ()=>({
name: external_index_cjs_namespaceObject.pluginName,
apply (compiler) {
let devServerStarted = false;
compiler.hooks.beforeCompile.tapPromise(external_index_cjs_namespaceObject.pluginName, async ()=>{
const isDev = "development" === compiler.options.mode;
const isBuild = "production" === compiler.options.mode;
if (isBuild) await (0, build_namespaceObject.build)();
else if (isDev && !devServerStarted) {
devServerStarted = true;
await (0, dev_namespaceObject.dev)();
}
});
}
});
exports["default"] = __webpack_exports__["default"];
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
"default"
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
Object.defineProperty(exports, '__esModule', {
value: true
});
//# sourceMappingURL=rspack.cjs.map