Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup #19

Merged
merged 2 commits into from
Aug 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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