Skip to content

Commit efb97ff

Browse files
committed
Import multiple sequence files
2 parents 7ed3191 + 843086e commit efb97ff

4 files changed

Lines changed: 19 additions & 12 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@labkey/api",
3-
"version": "1.52.1-fb-genBank.1",
3+
"version": "1.52.2-fb-genBank.1",
44
"description": "JavaScript client API for LabKey Server",
55
"scripts": {
66
"build": "npm run build:dist && npm run build:docs",

src/wrapper.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,30 +31,27 @@ declare let LABKEY: any;
3131
LABKEY.ActionURL = API.ActionURL;
3232
LABKEY.Ajax = API.Ajax;
3333
LABKEY.App = API.App;
34+
LABKEY.Assay = API.Assay;
3435
LABKEY.Domain = API.Domain;
3536
LABKEY.Exp = API.Exp;
37+
LABKEY.Experiment = API.Experiment;
3638
LABKEY.FieldKey = API.FieldKey;
3739
LABKEY.Filter = API.Filter;
3840
LABKEY.List = API.List;
3941
LABKEY.Message = API.Message;
4042
LABKEY.MultiRequest = API.MultiRequest;
4143
LABKEY.ParticipantGroup = API.ParticipantGroup;
4244
LABKEY.Pipeline = API.Pipeline;
45+
LABKEY.Query = API.Query;
4346
LABKEY.QueryKey = API.QueryKey;
4447
LABKEY.Report = API.Report;
4548
LABKEY.SchemaKey = API.SchemaKey;
49+
LABKEY.Security = API.Security;
4650
LABKEY.Specimen = API.Specimen;
4751
LABKEY.Storage = API.Storage;
52+
LABKEY.Utils = API.Utils;
4853
LABKEY.Visualization = API.Visualization;
4954

50-
// The following namespaces are extended at runtime by legacy DOM overrides.
51-
// Since we are now targeting ES2023+, we need to create writable plain objects so the overrides can mutate.
52-
LABKEY.Assay = Object.assign({}, API.Assay);
53-
LABKEY.Experiment = Object.assign({}, API.Experiment);
54-
LABKEY.Query = Object.assign({}, API.Query);
55-
LABKEY.Security = Object.assign({}, API.Security);
56-
LABKEY.Utils = Object.assign({}, API.Utils);
57-
5855
LABKEY.__package__ = __package__;
5956

6057
// The app registry needs to be initialized after the namespace has been established.

webpack.config.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,22 @@ const apiGlobalConfig = {
2424
loader: 'ts-loader',
2525
options: {
2626
onlyCompileBundledFiles: true,
27+
// Emit CommonJS ("nodenext", since package.json intentionally has no "type":"module") so LABKEY
28+
// namespaces stay shared, writable exports that legacy runtime overrides can patch.
29+
compilerOptions: {
30+
module: 'nodenext',
31+
moduleResolution: 'nodenext',
32+
},
2733
},
2834
},
2935
],
3036
},
3137

38+
optimization: {
39+
// Disable scope hoisting so cross-module references resolve through the shared, patchable exports objects.
40+
concatenateModules: false,
41+
},
42+
3243
output: {
3344
filename: 'labkey-api-js-[name].min.js',
3445
},
@@ -57,7 +68,6 @@ const umdPackageConfig = {
5768
outDir: path.resolve(__dirname, 'dist'),
5869
declaration: true,
5970
removeComments: true,
60-
target: 'ES6',
6171
},
6272
onlyCompileBundledFiles: true,
6373
},

0 commit comments

Comments
 (0)