rebuildjs 0.2.0 → 0.3.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/build/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import type { BuildOptions, Plugin } from 'esbuild'
2
2
  export declare function server__build(config?:Partial<BuildOptions>):Promise<void>
3
3
  export declare function browser__build(config?:Partial<BuildOptions>):Promise<void>
4
- export declare function cssBundle_to_browser_():Plugin
4
+ export declare function rebuildjs_plugin_():Plugin
package/build/index.js CHANGED
@@ -31,7 +31,7 @@ export async function server__build(config = {}) {
31
31
  entryPoints.push(path)
32
32
  }
33
33
  const external = ['/assets/*', 'bun', 'node_modules/*', ...(config.external || [])]
34
- const plugins = [cssBundle_to_browser_(), ...(config.plugins || [])]
34
+ const plugins = [rebuildjs_plugin_(), ...(config.plugins || [])]
35
35
  const esbuild_config = {
36
36
  entryPoints,
37
37
  entryNames: '[name]-[hash]',
@@ -70,7 +70,7 @@ export async function browser__build(config = {}) {
70
70
  for (const path of path_a) {
71
71
  entryPoints.push(path)
72
72
  }
73
- const plugins = [cssBundle_to_browser_(), ...(config.plugins || [])]
73
+ const plugins = [rebuildjs_plugin_(), ...(config.plugins || [])]
74
74
  /** @type {BuildOptions} */
75
75
  const esbuild_config = {
76
76
  entryPoints,
@@ -98,9 +98,9 @@ export async function browser__build(config = {}) {
98
98
  }
99
99
  await public__cp()
100
100
  }
101
- export function cssBundle_to_browser_() {
101
+ export function rebuildjs_plugin_() {
102
102
  return {
103
- name: 'cssBundle_to_browser',
103
+ name: 'rebuildjs_plugin',
104
104
  setup(build) {
105
105
  build.onEnd(async result=>{
106
106
  if (result.metafile) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rebuildjs",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Reactive esbuild...simple hackable alternative to vite for Multi Page Apps",
5
5
  "keywords": [
6
6
  "reactive",