@absolutejs/absolute 0.19.0-beta.652 → 0.19.0-beta.654
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/build.js +7 -2
- package/dist/build.js.map +3 -3
- package/dist/cli/index.js +36 -3
- package/dist/index.js +7 -2
- package/dist/index.js.map +3 -3
- package/dist/react/jsxDevRuntimeCompat.js +95 -0
- package/dist/react/jsxDevRuntimeCompat.js.map +10 -0
- package/dist/src/react/jsxDevRuntimeCompat.d.ts +11 -0
- package/package.json +7 -7
package/dist/build.js
CHANGED
|
@@ -174678,7 +174678,7 @@ import { mkdirSync as mkdirSync6 } from "fs";
|
|
|
174678
174678
|
import { join as join14 } from "path";
|
|
174679
174679
|
import { rm as rm4 } from "fs/promises";
|
|
174680
174680
|
var {build: bunBuild2 } = globalThis.Bun;
|
|
174681
|
-
var reactSpecifiers, isResolvable = (specifier) => {
|
|
174681
|
+
var jsxDevRuntimeCompatPath, reactSpecifiers, isResolvable = (specifier) => {
|
|
174682
174682
|
try {
|
|
174683
174683
|
Bun.resolveSync(specifier, process.cwd());
|
|
174684
174684
|
return true;
|
|
@@ -174697,6 +174697,10 @@ var reactSpecifiers, isResolvable = (specifier) => {
|
|
|
174697
174697
|
}
|
|
174698
174698
|
return paths;
|
|
174699
174699
|
}, generateEntrySource = async (specifier) => {
|
|
174700
|
+
if (specifier === "react/jsx-dev-runtime") {
|
|
174701
|
+
return `export { Fragment, jsxDEV, default } from '${jsxDevRuntimeCompatPath}';
|
|
174702
|
+
`;
|
|
174703
|
+
}
|
|
174700
174704
|
const mod = await import(specifier);
|
|
174701
174705
|
const exportNames = Object.keys(mod).filter((key) => key !== "default" && key !== "__esModule");
|
|
174702
174706
|
const lines = [];
|
|
@@ -174738,6 +174742,7 @@ var reactSpecifiers, isResolvable = (specifier) => {
|
|
|
174738
174742
|
}
|
|
174739
174743
|
};
|
|
174740
174744
|
var init_buildReactVendor = __esm(() => {
|
|
174745
|
+
jsxDevRuntimeCompatPath = join14(import.meta.dir, "..", "react", "jsxDevRuntimeCompat.ts").replace(/\\/g, "/");
|
|
174741
174746
|
reactSpecifiers = [
|
|
174742
174747
|
"react",
|
|
174743
174748
|
"react-dom",
|
|
@@ -181080,5 +181085,5 @@ export {
|
|
|
181080
181085
|
build
|
|
181081
181086
|
};
|
|
181082
181087
|
|
|
181083
|
-
//# debugId=
|
|
181088
|
+
//# debugId=C3DBEF2236C61BA264756E2164756E21
|
|
181084
181089
|
//# sourceMappingURL=build.js.map
|