Skip to content

Instantly share code, notes, and snippets.

@umaar
Last active November 20, 2020 15:52

Revisions

  1. umaar revised this gist Nov 20, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions example-of-unused-js-code.js
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    // main.js
    import {cat} from './animals.js'

    cat();
  2. umaar created this gist Nov 20, 2020.
    14 changes: 14 additions & 0 deletions example-of-unused-js-code.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    import {cat} from './animals.js'

    cat();

    // animals.js
    function cat() {
    console.log('meow');
    }

    function dog() {
    console.log('woof');
    }

    export {cat, dog};