Code Monkey home page Code Monkey logo

Comments (5)

AckerApple avatar AckerApple commented on June 7, 2024 2

@rjsteinert, you are way off point and assuming much...

Here, one line of code from this package: package.json babel build step

That one line of code is babel compiling to old browser code... Nothing TypeScript

TypeScript? I import this package using TypeScript but ...... Listen, just import that damn thing. I made it browser universal and now this is several messages deep on a subject you could have just tried out and found if it did or did not work.....

It works... Next. Close this

from jsonexport.

AckerApple avatar AckerApple commented on June 7, 2024 1

Yes, and I put a lot of work into that... The readme docs covers it. Just search "browser" at readme file

from jsonexport.

AckerApple avatar AckerApple commented on June 7, 2024 1

Ok, the code is ES6 compatible but it is NOT one flat file .min bundle file for direct browser stand alone usage.

It is expected that most everyone uses a code bundler these days. You could use bable yourself to bundle this code to one flat file.

The master branch of this package is intended for inclusion via npm package.json dependency declaration. I don't want to maintain some CDN branch for just one file for this edge case.

Good luck. Fare well

from jsonexport.

rjcorwin avatar rjcorwin commented on June 7, 2024

Hi @AckerApple - That's cool you can use this in TypeScript. The TypeScript transpiler must have support for the CommonJS Module standard you are using. Unfortunately that does allow us to import your module in our ES6 code without some extra build steps.

from jsonexport.

rjcorwin avatar rjcorwin commented on June 7, 2024

No worries man. I'm referring to ES6 modules in the browser with are not compatible with the node.js require method (CommonJS) for including dependencies that is being distributed in your package.

from jsonexport.

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.