@styleframe/loader 3.0.0 → 3.0.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/CHANGELOG.md +23 -0
- package/dist/build.d.ts +9 -0
- package/dist/build.d.ts.map +1 -0
- package/dist/config.d.ts +16 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/index.cjs +1 -1474
- package/dist/index.d.ts +7 -105
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +141 -1476
- package/dist/jiti.d.ts +34 -0
- package/dist/jiti.d.ts.map +1 -0
- package/dist/module.d.ts +30 -0
- package/dist/module.d.ts.map +1 -0
- package/dist/types.d.ts +42 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +10 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @styleframe/loader
|
|
2
2
|
|
|
3
|
+
## 3.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#233](https://github.com/styleframe-dev/styleframe/pull/233) [`0ef38e6`](https://github.com/styleframe-dev/styleframe/commit/0ef38e69ca941cefab31463c23980f52cae1541f) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Migrate from Vite 7 to Vite 8 with native Rolldown integration. Replace esbuild transforms with Oxc in the plugin, rename `rollupOptions` to `rolldownOptions`, upgrade `vite-plugin-dts` v4 to v5 (`rollupTypes` → `bundleTypes`), and bump vitest from v3 to v4.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`c7ff8c8`](https://github.com/styleframe-dev/styleframe/commit/c7ff8c89776b2e117b0f45f3e1f8ca6695f24a29), [`6acd766`](https://github.com/styleframe-dev/styleframe/commit/6acd766eefc82139d8cd98dfb9b553449945d704), [`dc99d46`](https://github.com/styleframe-dev/styleframe/commit/dc99d4699046f5e5f3dcac965648fd50b0339412), [`6941920`](https://github.com/styleframe-dev/styleframe/commit/6941920a50e560e4686aebd154bb6aea4c59c258), [`0ef38e6`](https://github.com/styleframe-dev/styleframe/commit/0ef38e69ca941cefab31463c23980f52cae1541f)]:
|
|
10
|
+
- @styleframe/core@3.6.0
|
|
11
|
+
- @styleframe/transpiler@3.4.0
|
|
12
|
+
|
|
13
|
+
## 3.0.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#181](https://github.com/styleframe-dev/styleframe/pull/181) [`e77988d`](https://github.com/styleframe-dev/styleframe/commit/e77988dda7f019d3a32f5e0cb7ba44930aee6a6d) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Remove vite-plugin-node and externalize peer deps in scanner/loader builds
|
|
18
|
+
- Remove `vite-plugin-node` which was injecting dead code (rfdc deep-clone, Buffer utilities) into dist bundles
|
|
19
|
+
- Replace with native Vite library mode and explicit `rollupOptions.external` for peer dependencies and Node.js builtins
|
|
20
|
+
- Scanner dist: 23.21 kB → 11.18 kB (52% smaller), Loader dist: 43.83 kB → 4.10 kB (91% smaller)
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`b506ea5`](https://github.com/styleframe-dev/styleframe/commit/b506ea5c3c36fa24fea19a69ee3fef7035397dda), [`efd99f7`](https://github.com/styleframe-dev/styleframe/commit/efd99f70a30f9a42c6e1793ed777b1565fb47a82), [`179c90d`](https://github.com/styleframe-dev/styleframe/commit/179c90d9f73dadbbeb9159ab9fbd7287ceba1f20)]:
|
|
23
|
+
- @styleframe/core@3.3.0
|
|
24
|
+
- @styleframe/transpiler@3.2.0
|
|
25
|
+
|
|
3
26
|
## 3.0.0
|
|
4
27
|
|
|
5
28
|
### Major Changes
|
package/dist/build.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Styleframe } from '@styleframe/core';
|
|
2
|
+
import { TranspileOptions } from '@styleframe/transpiler';
|
|
3
|
+
export type BuildOptions = {
|
|
4
|
+
clean?: boolean;
|
|
5
|
+
outputDir?: string;
|
|
6
|
+
transpiler?: TranspileOptions;
|
|
7
|
+
};
|
|
8
|
+
export declare function build(instance: Styleframe, { clean, outputDir, transpiler }?: BuildOptions): Promise<void>;
|
|
9
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAQ/D,MAAM,MAAM,YAAY,GAAG;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF,wBAAsB,KAAK,CAC1B,QAAQ,EAAE,UAAU,EACpB,EAAE,KAAY,EAAE,SAA0B,EAAE,UAAU,EAAE,GAAE,YAAiB,iBA0B3E"}
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Styleframe } from '@styleframe/core';
|
|
2
|
+
export declare function loadConfiguration({ cwd, entry, }?: {
|
|
3
|
+
cwd?: string;
|
|
4
|
+
entry?: string;
|
|
5
|
+
}): Promise<Styleframe>;
|
|
6
|
+
export declare function watchConfiguration({ cwd, entry, onUpdate, onError, }?: {
|
|
7
|
+
cwd?: string;
|
|
8
|
+
entry?: string;
|
|
9
|
+
onUpdate?: (config: Styleframe) => void;
|
|
10
|
+
onError?: (error: Error) => void;
|
|
11
|
+
}): Promise<{
|
|
12
|
+
config: Styleframe;
|
|
13
|
+
configFile: string;
|
|
14
|
+
unwatch: () => Promise<void>;
|
|
15
|
+
}>;
|
|
16
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AA8BnD,wBAAsB,iBAAiB,CAAC,EACvC,GAAmB,EACnB,KAA2B,GAC3B,GAAE;IACF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CACV,uBAUL;AAED,wBAAsB,kBAAkB,CAAC,EACxC,GAAmB,EACnB,KAA2B,EAC3B,QAAQ,EACR,OAAO,GACP,GAAE;IACF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACxC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAC5B;;;;GA0BL"}
|