3.0.2 • Published 3 years ago

beyondjava-example-base-library v3.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

Simple demo showing that npm and Webpack can bundle different versions of the same library. Read the full story at https://www.beyondjava.net/npm-transitive-dependencies.

There are three versions of the library:

Version 1.2.0

function printDeepThoughts() {
    console.log(42);
    return 42;
}

module.exports = printDeepThoughts;

Version 2.1.0

function printDeepThoughts() {
    console.log('21 is only half the truth');
    return 21;
}

module.exports = printDeepThoughts;

Version 3.0.x

class DeepThought {
    printDeepThoughts() {
        console.log('84 is twice the truth');
        return 84;
    }
    
}

module.exports = { DeepThought };
3.0.2

3 years ago

3.0.1

3 years ago

2.1.0

3 years ago

1.2.0

3 years ago

3.0.0

3 years ago

1.1.0

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago