53 lines
2.1 KiB
JavaScript
53 lines
2.1 KiB
JavaScript
"use strict";
|
|
var __defProp = Object.defineProperty;
|
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var __export = (target, all) => {
|
|
for (var name in all)
|
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
};
|
|
var __copyProps = (to, from, except, desc) => {
|
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
for (let key of __getOwnPropNames(from))
|
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
}
|
|
return to;
|
|
};
|
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
var tsup_config_front_exports = {};
|
|
__export(tsup_config_front_exports, {
|
|
default: () => tsup_config_front_default,
|
|
tsup_config_front: () => tsup_config_front
|
|
});
|
|
module.exports = __toCommonJS(tsup_config_front_exports);
|
|
var import_tsup = require("tsup");
|
|
const tsup_config_front = {
|
|
entry: ["src/**/*.ts", "src/**/*.tsx"],
|
|
// Adicionado .tsx para compatibilidade, se aplicável
|
|
format: "esm",
|
|
// Gera módulos ES para import/export no navegador
|
|
target: "es2022",
|
|
// Ou 'esnext' para os recursos mais recentes
|
|
outDir: "dist-front",
|
|
// Diretório de saída para os arquivos transpilados
|
|
clean: true,
|
|
// Limpa o diretório de saída antes de cada build
|
|
bundle: false,
|
|
// ESSENCIAL: Mantém a estrutura de arquivos e pastas original
|
|
splitting: false,
|
|
// Desnecessário quando bundle é false
|
|
dts: false,
|
|
// Não gera arquivos de declaração TypeScript (.d.ts) para uso em front-end JS
|
|
// legacyOutput e outExtension foram removidos por não serem necessários
|
|
sourcemap: false,
|
|
minify: false,
|
|
// Recomendado para builds de produção
|
|
outExtension: () => ({ js: ".js" })
|
|
};
|
|
var tsup_config_front_default = (0, import_tsup.defineConfig)(tsup_config_front);
|
|
// Annotate the CommonJS export names for ESM import in node:
|
|
0 && (module.exports = {
|
|
tsup_config_front
|
|
});
|