Git Product home page Git Product logo

Comments (4)

karnthis avatar karnthis commented on July 19, 2024 1

All you should need to do is

git clone
npm i
npm run build

from lz-string.

Georg-Git avatar Georg-Git commented on July 19, 2024

Solved.

Maybe a few tips on building would be helpful:

git clone https://github.com/pieroxy/lz-string.git
npm install eslint -D
npm install prettier -D
npm install vite -D
npm install vitest -D
npm run build
dist/index.umd.js  6.08 kB │ gzip: 1.94 kB │ map: 39.92 kB
✓ built in 2.78s

from lz-string.

Georg-Git avatar Georg-Git commented on July 19, 2024

embarrassing.... 😉

To give this issue a justification for existence - one warning is left:

...
dist/_compress.js                                              2.65 kB │ gzip: 0.64 kB │ map: 14.06 kB

No name was provided for external module "fs" in "output.globals" – guessing "fs".
Creating a browser bundle that depends on Node.js built-in modules ("fs"). You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node

dist/index.umd.js  6.08 kB │ gzip: 1.94 kB │ map: 39.92 kB
✓ built in 2.81s

from lz-string.

Rycochet avatar Rycochet commented on July 19, 2024

Nobody should use npm i unless they're actively developing and updating dependencies - it should be npm ci which ensures everything is the same versions (ie, be deterministic). That warning is ok, the code it warns about is for use in nodejs only, but we're building a bundle that can be used in both nodejs and the browser 😄

from lz-string.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.