rebuildjs 0.62.2 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/index.d.ts +2 -1
- package/browser/index.js +2 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -6
- package/server/build/index.js +2 -0
- package/server/index.d.ts +0 -1
- package/server/index.js +0 -1
- package/any/asset/index.d.ts +0 -6
- package/any/asset/index.js +0 -20
- package/any/asset/index.test.ts +0 -23
- package/any/index.d.ts +0 -3
- package/any/index.js +0 -3
package/browser/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
// reserved for future use
|
|
2
|
+
export {}
|
package/browser/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
// reserved for future use
|
|
2
|
+
export {}
|
package/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {}
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rebuildjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.0",
|
|
4
4
|
"description": "Reactive esbuild...simple hackable alternative to vite for Multi Page Apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"reactive",
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"*.js",
|
|
28
28
|
"*.json",
|
|
29
29
|
"_fixtures",
|
|
30
|
-
"any",
|
|
31
30
|
"browser",
|
|
32
31
|
"types",
|
|
33
32
|
"server"
|
|
@@ -37,10 +36,6 @@
|
|
|
37
36
|
"types": "./index.d.ts",
|
|
38
37
|
"default": "./index.js"
|
|
39
38
|
},
|
|
40
|
-
"./any": {
|
|
41
|
-
"types": "./any/index.d.ts",
|
|
42
|
-
"default": "./any/index.js"
|
|
43
|
-
},
|
|
44
39
|
"./browser": {
|
|
45
40
|
"types": "./browser/index.d.ts",
|
|
46
41
|
"default": "./browser/index.js"
|
package/server/build/index.js
CHANGED
|
@@ -256,6 +256,7 @@ export async function rebuildjs_browser__build(config) {
|
|
|
256
256
|
minify: is_prod_(app_ctx),
|
|
257
257
|
sourcemap: 'external',
|
|
258
258
|
loader: default_loader,
|
|
259
|
+
publicPath: '/',
|
|
259
260
|
...esbuild__config,
|
|
260
261
|
entryPoints,
|
|
261
262
|
format: 'esm',
|
|
@@ -311,6 +312,7 @@ export async function rebuildjs_server__build(config) {
|
|
|
311
312
|
minify: is_prod_(app_ctx),
|
|
312
313
|
sourcemap: 'external',
|
|
313
314
|
loader: default_loader,
|
|
315
|
+
publicPath: '/',
|
|
314
316
|
...esbuild__config,
|
|
315
317
|
entryPoints,
|
|
316
318
|
format: 'esm',
|
package/server/index.d.ts
CHANGED
package/server/index.js
CHANGED
package/any/asset/index.d.ts
DELETED
package/any/asset/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param {Promise<{ default:string }>}mod_promise
|
|
3
|
-
* @returns {Promise<string>}
|
|
4
|
-
* @private
|
|
5
|
-
*/
|
|
6
|
-
export function asset_path_(mod_promise) {
|
|
7
|
-
return (
|
|
8
|
-
mod_promise
|
|
9
|
-
.then(mod=>mod.default)
|
|
10
|
-
.then(relative_path=>relative_path.replace(/^\.\//, '/'))
|
|
11
|
-
)
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @param {Promise<{ default:string }>}mod_promise_a
|
|
15
|
-
* @returns {Promise<string[]>}
|
|
16
|
-
* @private
|
|
17
|
-
*/
|
|
18
|
-
export function asset_path_a_(...mod_promise_a) {
|
|
19
|
-
return Promise.all(mod_promise_a.map(asset_path_))
|
|
20
|
-
}
|
package/any/asset/index.test.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { test } from 'uvu'
|
|
2
|
-
import { equal } from 'uvu/assert'
|
|
3
|
-
import { asset_path_, asset_path_a_ } from './index.js'
|
|
4
|
-
test('asset_path_', async ()=>{
|
|
5
|
-
equal(await asset_path_(mod_('./path.png')), '/path.png')
|
|
6
|
-
})
|
|
7
|
-
test('asset_path_a_', async ()=>{
|
|
8
|
-
equal(await asset_path_a_(
|
|
9
|
-
mod_('./path0.png'),
|
|
10
|
-
mod_('./path1.png'),
|
|
11
|
-
mod_('./path2.png'),
|
|
12
|
-
mod_('./path3.png'),
|
|
13
|
-
), [
|
|
14
|
-
'/path0.png',
|
|
15
|
-
'/path1.png',
|
|
16
|
-
'/path2.png',
|
|
17
|
-
'/path3.png',
|
|
18
|
-
])
|
|
19
|
-
})
|
|
20
|
-
test.run()
|
|
21
|
-
async function mod_(out_path:string) {
|
|
22
|
-
return { default: out_path }
|
|
23
|
-
}
|
package/any/index.d.ts
DELETED
package/any/index.js
DELETED