Skip to content

Commit

Permalink
fix export default
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmachuca committed Dec 22, 2024
1 parent 626f7fc commit 4658aa8
Show file tree
Hide file tree
Showing 15 changed files with 59 additions and 39 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.124-beta
2.5.125-beta
2 changes: 1 addition & 1 deletion build-esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const esmSettings = {...baseSettings,
};

const browserSettings = {...baseSettings,
entryPoints: ["src/QCObjects.ts"], // Your entry file
entryPoints: ["src/qcobjects.ts"], // Your entry file
bundle: true,
outdir: "public/browser", // Output dir
format: "iife", // or "esm" depending on your module system
Expand Down
1 change: 0 additions & 1 deletion build/QCObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,3 @@ Object.defineProperty(exports, "__make_global__", { enumerable: true, get: funct
var top_3 = require("./top");
Object.defineProperty(exports, "get", { enumerable: true, get: function () { return top_3.get; } });
Object.defineProperty(exports, "set", { enumerable: true, get: function () { return top_3.set; } });
exports.default = {};
40 changes: 35 additions & 5 deletions build/index.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,37 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
const qcobjects_js_1 = __importDefault(require("./qcobjects.js"));
module.exports = qcobjects_js_1.default;
const QCObjects = __importStar(require("./qcobjects.js"));
module.exports = QCObjects;
2 changes: 1 addition & 1 deletion build/index.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import QCObjects from "./qcobjects.js";
import * as QCObjects from "./qcobjects.js";
export default QCObjects;
26 changes: 12 additions & 14 deletions public/browser/QCObjects.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions public/browser/QCObjects.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions public/cjs/QCObjects.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5132,7 +5132,6 @@ __export(qcobjects_exports, {
asyncLoad: () => asyncLoad,
captureFalseTouch: () => captureFalseTouch,
componentLoader: () => componentLoader,
default: () => qcobjects_default,
findPackageNodePath: () => findPackageNodePath,
get: () => get,
getDocumentLayout: () => getDocumentLayout,
Expand Down Expand Up @@ -6605,7 +6604,6 @@ init_mathFunctions();
init_top();
init_make_global();
init_top();
var qcobjects_default = {};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
ArrayCollection,
Expand Down
4 changes: 2 additions & 2 deletions public/cjs/QCObjects.cjs.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions public/esm/QCObjects.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6514,7 +6514,6 @@ init_mathFunctions();
init_top();
init_make_global();
init_top();
var qcobjects_default = {};
export {
ArrayCollection,
ArrayList,
Expand Down Expand Up @@ -6585,7 +6584,6 @@ export {
asyncLoad,
captureFalseTouch,
componentLoader,
qcobjects_default as default,
findPackageNodePath,
get,
getDocumentLayout,
Expand Down
4 changes: 2 additions & 2 deletions public/esm/QCObjects.mjs.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions public/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1052,8 +1052,6 @@ declare module "qcobjects" {
export { _top as global } from "top";
export { __make_global__ } from "make_global";
export { get, set } from "top";
const _default: {};
export default _default;
}
declare module "index" {
import * as QCObjects from "qcobjects";
Expand Down
1 change: 0 additions & 1 deletion src/QCObjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,3 @@ export { __to_number } from "./mathFunctions";
export {_top as global} from "./top";
export {__make_global__} from "./make_global";
export {get, set} from "./top";
export default {};
2 changes: 1 addition & 1 deletion src/index.cts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import QCObjects from "./qcobjects.js";
import * as QCObjects from "./qcobjects.js";
module.exports = QCObjects;
2 changes: 1 addition & 1 deletion src/index.mts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import QCObjects from "./qcobjects.js";
import * as QCObjects from "./qcobjects.js";
export default QCObjects;

0 comments on commit 4658aa8

Please sign in to comment.