rebuildjs 0.12.0 → 0.13.2

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/css/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import type { Plugin } from 'esbuild'
2
+ export declare function cssjs_esbuild_plugin_():Plugin
package/css/index.js ADDED
@@ -0,0 +1,20 @@
1
+ /// <reference types="esbuild" />
2
+ /// <reference types="./index.d.ts" />
3
+ /**
4
+ * @returns {Plugin}
5
+ * @private
6
+ */
7
+ export function cssjs_esbuild_plugin_() {
8
+ return {
9
+ name: 'cssjs_esbuild_plugin',
10
+ setup(build) {
11
+ build.onLoad(
12
+ { filter: /\.css\.(js|ts)$/ },
13
+ async ({ path })=>{
14
+ const contents = await import(path).then(mod=>mod.default())
15
+ return { contents, loader: 'css' }
16
+ }
17
+ )
18
+ },
19
+ }
20
+ }
package/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './app/index.js'
4
4
  export * from './asset/index.js'
5
5
  export * from './browser/index.js'
6
6
  export * from './build/index.js'
7
+ export * from './css/index.js'
7
8
  export * from './ctx/index.js'
8
9
  export * from './middleware/index.js'
9
10
  export * from './server/index.js'
package/index.js CHANGED
@@ -4,6 +4,7 @@ export * from './app/index.js'
4
4
  export * from './asset/index.js'
5
5
  export * from './browser/index.js'
6
6
  export * from './build/index.js'
7
+ export * from './css/index.js'
7
8
  export * from './ctx/index.js'
8
9
  export * from './middleware/index.js'
9
10
  export * from './server/index.js'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rebuildjs",
3
- "version": "0.12.0",
3
+ "version": "0.13.2",
4
4
  "description": "Reactive esbuild...simple hackable alternative to vite for Multi Page Apps",
5
5
  "keywords": [
6
6
  "reactive",
@@ -30,6 +30,7 @@
30
30
  "asset",
31
31
  "browser",
32
32
  "build",
33
+ "css",
33
34
  "ctx",
34
35
  "middleware",
35
36
  "server"
@@ -41,14 +42,15 @@
41
42
  "./asset": "./asset/index.js",
42
43
  "./browser": "./browser/index.js",
43
44
  "./build": "./build/index.js",
45
+ "./css": "./css/index.js",
44
46
  "./ctx": "./ctx/index.js",
45
47
  "./middleware": "./middleware/index.js",
46
48
  "./server": "./server/index.js",
47
49
  "./package.json": "./package.json"
48
50
  },
49
51
  "dependencies": {
50
- "@ctx-core/fs": "^1.4.35",
51
- "ctx-core": "^4.18.0",
52
+ "@ctx-core/fs": "^1.4.36",
53
+ "ctx-core": "^4.19.0",
52
54
  "elysia": "^0.7.30",
53
55
  "esbuild": "^0.19.9",
54
56
  "fdir": "^6.1.1",