Skip to content

Commit

Permalink
Merge pull request #19 from Russell2259/main
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
Avad3 authored Aug 13, 2023
2 parents 63a7358 + cb1764b commit 43eb86f
Show file tree
Hide file tree
Showing 22 changed files with 725 additions and 3,231 deletions.
30 changes: 30 additions & 0 deletions dist/dynamic.client.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions dist/dynamic.client.js.map

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions dist/dynamic.handler.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions dist/dynamic.handler.js.map

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions dist/dynamic.html.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions dist/dynamic.html.js.map

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions dist/dynamic.worker.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions dist/dynamic.worker.js.map

Large diffs are not rendered by default.

31 changes: 30 additions & 1 deletion docs/examples/uv-dynamic-multi/dynamic/dynamic.client.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/examples/uv-dynamic-multi/dynamic/dynamic.client.js.map

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions docs/examples/uv-dynamic-multi/dynamic/dynamic.config.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
self.__dynamic$config = {
prefix: '/service/',
encoding: 'xor',
mode: 'development', // development: zero caching, no minification, production: speed-oriented
logLevel: 0, // 0: none, 1: errors, 2: errors + warnings, 3: errors + warnings + info
bare: {
version: 2, // v3 is bad
path: '/bare/',
},
tab: {
title: 'Service',
icon: null,
ua: null,
},
assets: {
prefix: '/dynamic/',
files: {
handler: 'dynamic.handler.js',
client: 'dynamic.client.js',
worker: 'dynamic.worker.js',
config: 'dynamic.config.js',
inject: null,
}
},
block: [

]
};
prefix: '/service/',
encoding: 'xor',
mode: 'production', // development: zero caching, no minification, production: speed-oriented
logLevel: 0, // 0: none, 1: errors, 2: errors + warnings, 3: errors + warnings + info
bare: {
version: 2, // v3 is bad
path: '/bare/',
},
tab: {
title: 'Service',
icon: null,
ua: null,
},
assets: {
prefix: '/dynamic/',
files: {
handler: 'dynamic.handler.js',
client: 'dynamic.client.js',
worker: 'dynamic.worker.js',
config: 'dynamic.config.js',
inject: null,
}
},
block: [
]
};
31 changes: 30 additions & 1 deletion docs/examples/uv-dynamic-multi/dynamic/dynamic.handler.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/examples/uv-dynamic-multi/dynamic/dynamic.handler.js.map

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion docs/examples/uv-dynamic-multi/dynamic/dynamic.html.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/examples/uv-dynamic-multi/dynamic/dynamic.html.js.map

Large diffs are not rendered by default.

31 changes: 30 additions & 1 deletion docs/examples/uv-dynamic-multi/dynamic/dynamic.worker.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/examples/uv-dynamic-multi/dynamic/dynamic.worker.js.map

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions esbuild.bundle.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as esbuild from 'esbuild';

const build = async () => {
console.time("esbuild");
console.time('esbuild');

const worker = await esbuild.context({
entryPoints: ['lib/worker/index.ts'],
bundle: true,
outfile: 'static/dynamic/dynamic.worker.js',
outfile: 'dist/dynamic.worker.js',
format: 'iife',
minify: true,
platform: 'browser',
Expand All @@ -21,7 +21,7 @@ const build = async () => {
const handler = await esbuild.context({
entryPoints: ['lib/handler/index.ts'],
bundle: true,
outfile: 'static/dynamic/dynamic.handler.js',
outfile: 'dist/dynamic.handler.js',
format: 'iife',
minify: true,
platform: 'browser',
Expand All @@ -36,7 +36,7 @@ const build = async () => {
const client = await esbuild.context({
entryPoints: ['lib/client/index.ts'],
bundle: true,
outfile: 'static/dynamic/dynamic.client.js',
outfile: 'dist/dynamic.client.js',
format: 'iife',
minify: true,
platform: 'browser',
Expand All @@ -51,7 +51,7 @@ const build = async () => {
const html = await esbuild.context({
entryPoints: ['lib/html/index.ts'],
bundle: true,
outfile: 'static/dynamic/dynamic.html.js',
outfile: 'dist/dynamic.html.js',
format: 'iife',
minify: true,
platform: 'browser',
Expand All @@ -65,7 +65,7 @@ const build = async () => {

console.log(await esbuild.analyzeMetafile((await worker.rebuild()).metafile));

console.timeEnd("esbuild");
console.timeEnd('esbuild');

await new Promise(resolve => null);
}
Expand Down
1 change: 0 additions & 1 deletion lib/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
declare module 'meriyah/dist/meriyah.esm.min.js';
declare module '@dynamic-pkg/bare-client';
declare module '@dynamic-pkg/acorn';
declare module '@dynamic-pkg/astring';
Expand Down
Loading

0 comments on commit 43eb86f

Please sign in to comment.