rebuildjs 0.63.13 → 0.64.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rebuildjs",
3
- "version": "0.63.13",
3
+ "version": "0.64.0",
4
4
  "description": "Reactive esbuild...simple hackable alternative to vite for Multi Page Apps",
5
5
  "keywords": [
6
6
  "reactive",
@@ -1,7 +1,7 @@
1
1
  import type { ctx__be_T, ctx__get_T, ctx__set_T, nullish, rmemo__wait_ret_T, rmemo_T, sig_T } from 'ctx-core/rmemo'
2
2
  import type { BuildContext, BuildOptions, Loader, Plugin } from 'esbuild'
3
3
  import type { rebuildjs_metafile_T } from '../metafile_l0/index.js'
4
- export declare const default_loader:{ [ext:string]:Loader }
4
+ export declare const defaultLoader:{ [ext:string]:Loader }
5
5
  export declare const build_id$_:ctx__be_T<sig_T<string|undefined>, 'app'>
6
6
  export declare const build_id_:ctx__get_T<string|undefined, 'app'>
7
7
  export declare const build_id__set:ctx__set_T<string|undefined, 'app'>
@@ -194,6 +194,8 @@ export const default_loader = {
194
194
  '.eot': 'file',
195
195
  '.flac': 'file',
196
196
  '.gif': 'file',
197
+ '.htm': 'file',
198
+ '.html': 'file',
197
199
  '.ico': 'file',
198
200
  '.jfif': 'file',
199
201
  '.jpeg': 'file',
@@ -217,6 +219,7 @@ export const default_loader = {
217
219
  '.woff': 'file',
218
220
  '.woff2': 'file',
219
221
  '.txt': 'text',
222
+ '.xml': 'text',
220
223
  }
221
224
  /**
222
225
  * @param {import('esbuild').Plugin}config
package/types/index.d.ts CHANGED
@@ -1,5 +1,18 @@
1
1
  /// <reference lib="dom" />
2
2
  // forked from https://github.com/vitejs/vite/blob/main/packages/vite/client.d.ts
3
+ declare module '*.htm' {
4
+ const src: string
5
+ export default src
6
+ }
7
+ declare module '*.html' {
8
+ const src: string
9
+ export default src
10
+ }
11
+ declare module '*.xml' {
12
+ const src: string
13
+ export default src
14
+ }
15
+
3
16
  declare module '*.apng' {
4
17
  const src: string
5
18
  export default src