@absolutejs/absolute 0.19.0-beta.1136 → 0.19.0-beta.1137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -34440,7 +34440,7 @@ __export(exports_moduleServer, {
|
|
|
34440
34440
|
});
|
|
34441
34441
|
import { existsSync as existsSync35, readFileSync as readFileSync30, realpathSync as realpathSync3, statSync as statSync6 } from "fs";
|
|
34442
34442
|
import { basename as basename16, dirname as dirname26, extname as extname12, join as join44, resolve as resolve39, relative as relative16 } from "path";
|
|
34443
|
-
var SRC_PREFIX = "/@src/", jsTranspiler2, legacyDecoratorTsconfig, tsTranspiler2, tsxTranspiler, TRANSPILABLE,
|
|
34443
|
+
var SRC_PREFIX = "/@src/", BROWSER_DEFINE, jsTranspiler2, legacyDecoratorTsconfig, tsTranspiler2, tsxTranspiler, TRANSPILABLE, ALL_EXPORTS_RE, STRING_CONTENTS_RE, preserveTypeExports = (originalSource, transpiled, valueExports) => {
|
|
34444
34444
|
const codeOnly = originalSource.replace(STRING_CONTENTS_RE, '""');
|
|
34445
34445
|
const allExports = [];
|
|
34446
34446
|
let match;
|
|
@@ -34651,9 +34651,6 @@ ${transpiled}`;
|
|
|
34651
34651
|
const ext = extname12(filePath);
|
|
34652
34652
|
const isTS = ext === ".ts" || ext === ".tsx";
|
|
34653
34653
|
const isTSX = ext === ".tsx" || ext === ".jsx";
|
|
34654
|
-
if (isPrebuiltDependencyModule(filePath, ext, raw)) {
|
|
34655
|
-
return rewriteImports(raw, filePath, projectRoot, rewriter);
|
|
34656
|
-
}
|
|
34657
34654
|
let transpiler6 = jsTranspiler2;
|
|
34658
34655
|
if (isTSX)
|
|
34659
34656
|
transpiler6 = tsxTranspiler;
|
|
@@ -35253,7 +35250,9 @@ var init_moduleServer = __esm(() => {
|
|
|
35253
35250
|
init_lowerIslandSyntax();
|
|
35254
35251
|
init_logger();
|
|
35255
35252
|
init_transformCache();
|
|
35253
|
+
BROWSER_DEFINE = { require: "undefined" };
|
|
35256
35254
|
jsTranspiler2 = new Bun.Transpiler({
|
|
35255
|
+
define: BROWSER_DEFINE,
|
|
35257
35256
|
loader: "js",
|
|
35258
35257
|
trimUnusedImports: true
|
|
35259
35258
|
});
|
|
@@ -35264,19 +35263,18 @@ var init_moduleServer = __esm(() => {
|
|
|
35264
35263
|
}
|
|
35265
35264
|
});
|
|
35266
35265
|
tsTranspiler2 = new Bun.Transpiler({
|
|
35266
|
+
define: BROWSER_DEFINE,
|
|
35267
35267
|
loader: "ts",
|
|
35268
35268
|
trimUnusedImports: true,
|
|
35269
35269
|
tsconfig: legacyDecoratorTsconfig
|
|
35270
35270
|
});
|
|
35271
35271
|
tsxTranspiler = new Bun.Transpiler({
|
|
35272
|
+
define: BROWSER_DEFINE,
|
|
35272
35273
|
loader: "tsx",
|
|
35273
35274
|
trimUnusedImports: true,
|
|
35274
35275
|
tsconfig: legacyDecoratorTsconfig
|
|
35275
35276
|
});
|
|
35276
35277
|
TRANSPILABLE = new Set([".ts", ".tsx", ".js", ".jsx", ".mjs"]);
|
|
35277
|
-
NODE_MODULES_SEGMENT = /[/\\]node_modules[/\\]/u;
|
|
35278
|
-
PREBUILT_EXTENSIONS = new Set([".js", ".mjs"]);
|
|
35279
|
-
ESM_SYNTAX = /^\s*(?:import|export)[\s{*("']/mu;
|
|
35280
35278
|
ALL_EXPORTS_RE = /export\s+(?:type|interface|const|let|var|function|class|enum|abstract\s+class)\s+(\w+)/g;
|
|
35281
35279
|
STRING_CONTENTS_RE = /`(?:[^`\\]|\\.)*`|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"/gs;
|
|
35282
35280
|
IMPORT_EXTENSIONS = [".tsx", ".ts", ".jsx", ".js", ".svelte", ".vue"];
|
|
@@ -35305,6 +35303,7 @@ var init_moduleServer = __esm(() => {
|
|
|
35305
35303
|
JSX_PROD_RE = /\b(jsx_[a-z0-9]+)\b/;
|
|
35306
35304
|
FRAGMENT_RE = /\b(Fragment_[a-z0-9]+)\b/;
|
|
35307
35305
|
reactTranspilerOptions = {
|
|
35306
|
+
define: BROWSER_DEFINE,
|
|
35308
35307
|
loader: "tsx",
|
|
35309
35308
|
reactFastRefresh: true,
|
|
35310
35309
|
trimUnusedImports: true
|
|
@@ -48063,5 +48062,5 @@ export {
|
|
|
48063
48062
|
ANGULAR_INIT_TIMEOUT_MS
|
|
48064
48063
|
};
|
|
48065
48064
|
|
|
48066
|
-
//# debugId=
|
|
48065
|
+
//# debugId=2428F637392E781D64756E2164756E21
|
|
48067
48066
|
//# sourceMappingURL=index.js.map
|