Skip to content

Commit ca858ed

Browse files
committed
fix rollup
1 parent 89df223 commit ca858ed

20 files changed

+875
-7265
lines changed

.npmignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ webpack*.js
77
tslint.json
88
tsconfig.json
99
bin
10-
obj
10+
obj
11+
yarn.lock
12+
yarn-error.lock

@types/main.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { IFetchOptions } from "./interfaces";
2+
export * from "./interfaces";
23
export declare class AjaxWorker {
34
}
45
export declare namespace AjaxWorker {

desktop.ini

-3
This file was deleted.

dist/ajax-worker.js

+37-2,851
Large diffs are not rendered by default.

dist/ajax-worker.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

-124
This file was deleted.

lib/ajax-work.js

+25-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ajax-work.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/interfaces.js

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/interfaces.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/main.js

+37-35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/main.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rollup.config.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import {
2+
terser
3+
} from "rollup-plugin-terser";
4+
5+
export default [{
6+
input: 'lib/main.js',
7+
output: {
8+
file: 'dist/ajax-worker.js',
9+
format: 'cjs'
10+
},
11+
plugins: []
12+
}, {
13+
input: 'lib/main.js',
14+
output: {
15+
file: 'dist/ajax-worker.min.js',
16+
format: 'cjs'
17+
},
18+
plugins: [terser()]
19+
}];

src/ajax-work.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export namespace AjaxWork {
7777
};
7878
// sync ----------------------------
7979
// fetch ---------------------------
80-
options.keepalive = false;
80+
// options.keepalive = false; // TODO: testing
8181
ajaxRequestStackPush(options);
8282
if (options.url === null) {
8383
console.error("url cannot be null");

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const resolveRelative = require("resolve-relative-url");
44
const newHashFrom = require("object-hash");
55
import { Url } from "utility-collection";
66
import { process } from "uniqid";
7-
// // console.log("ajax-worker");
87

8+
export * from "./interfaces";
99
export class AjaxWorker { }
1010
export namespace AjaxWorker {
1111
const nocache = "ajaxworkercache";

0 commit comments

Comments
 (0)