Skip to content

Releases: farm-fe/farm

@farmfe/[email protected]

17 Nov 16:36
6836931
Compare
Choose a tag to compare

Patch Changes

@farmfe/[email protected]

17 Nov 16:36
6836931
Compare
Choose a tag to compare

Minor Changes

  • 7d86847: Support tree shake import * as ns from './xxx'. ./xxx can be tree-shaken if following rules are met:

    • ns is used as member prop, example: ns.a
    • ns is used as member literal computed, example: ns['a']

    For example:

    // b.ts
    export const a = 1;
    export const b = 2;
    
    // a.ts
    import * as ns from "./b";
    
    console.log(ns.a);
    console.log(ns["a"]);

    After tree shaking, the result will be:

    // b.ts
    export const a = 1; // a is preserved and b is removed.
    
    // a.ts
    import * as ns from "./b";
    console.log(ns.a);
    console.log(ns["a"]);

    But if ns is met rules above, then all the fields will be preserved, example:

    // b.ts
    export const a = 1;
    export const b = 2;
    
    // a.ts
    import * as ns from "./b";
    
    console.log(ns);

    After tree shaking, the result will be:

    // b.ts
    export const a = 1; // both a and b are preserved
    export const b = 2;
    // a.ts
    import * as ns from "./b";
    console.log(ns.a);
    console.log(ns["a"]);

v1.3.34: Version Packages (#1939)

16 Nov 00:39
077fd64
Compare
Choose a tag to compare
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

v0.0.15: Version Packages (#1939)

16 Nov 00:39
077fd64
Compare
Choose a tag to compare
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

[email protected]

16 Nov 00:40
077fd64
Compare
Choose a tag to compare

Patch Changes

  • d5e2b12: Add arch support for freebsd-x64

@farmfe/[email protected]

16 Nov 00:40
077fd64
Compare
Choose a tag to compare

Patch Changes

  • 8853c4a: fix bundle global variable preserve

v1.3.33: Version Packages (#1917)

07 Nov 09:19
147edc3
Compare
Choose a tag to compare
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

@farmfe/[email protected]

07 Nov 09:20
147edc3
Compare
Choose a tag to compare

Patch Changes

  • 3b95eef: Fix(runtime): invalid async module cache

@farmfe/[email protected]

07 Nov 09:20
147edc3
Compare
Choose a tag to compare

Patch Changes

v1.3.32: Version Packages (#1903)

06 Nov 04:54
8a759f3
Compare
Choose a tag to compare
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>