home.social

#createreactapp — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #createreactapp, aggregated by home.social.

  1. Is #javascript module system still schizophrenic? I wanted to reuse some non-#React code from a #CreateReactApp project on the command line. But CRA uses import from .js files, so gotta switch "type" in package.json, but then it turned out some library used XMLHttpRequest, which isn't available from modules (?).

    Anyway - what are best practices for #js command line apps? Should I just use #typescript now? If so, same question?

    Probably won't reuse code and run python or R instead.

  2. Is #javascript module system still schizophrenic? I wanted to reuse some non-#React code from a #CreateReactApp project on the command line. But CRA uses import from .js files, so gotta switch "type" in package.json, but then it turned out some library used XMLHttpRequest, which isn't available from modules (?).

    Anyway - what are best practices for #js command line apps? Should I just use #typescript now? If so, same question?

    Probably won't reuse code and run python or R instead.

  3. Is #javascript module system still schizophrenic? I wanted to reuse some non-#React code from a #CreateReactApp project on the command line. But CRA uses import from .js files, so gotta switch "type" in package.json, but then it turned out some library used XMLHttpRequest, which isn't available from modules (?).

    Anyway - what are best practices for #js command line apps? Should I just use #typescript now? If so, same question?

    Probably won't reuse code and run python or R instead.

  4. Is #javascript module system still schizophrenic? I wanted to reuse some non-#React code from a #CreateReactApp project on the command line. But CRA uses import from .js files, so gotta switch "type" in package.json, but then it turned out some library used XMLHttpRequest, which isn't available from modules (?).

    Anyway - what are best practices for #js command line apps? Should I just use #typescript now? If so, same question?

    Probably won't reuse code and run python or R instead.

  5. Is #javascript module system still schizophrenic? I wanted to reuse some non-#React code from a #CreateReactApp project on the command line. But CRA uses import from .js files, so gotta switch "type" in package.json, but then it turned out some library used XMLHttpRequest, which isn't available from modules (?).

    Anyway - what are best practices for #js command line apps? Should I just use #typescript now? If so, same question?

    Probably won't reuse code and run python or R instead.

  6. 4. All set up!

    It took me about an hour to set up Vite.js into desired configuration to allow that specific React+TypeScript project into running. I hope it will also help you to kickstart your migration CRA => Vite.

    #react #createreactapp #vitejs #typescript

  7. 4. All set up!

    It took me about an hour to set up Vite.js into desired configuration to allow that specific React+TypeScript project into running. I hope it will also help you to kickstart your migration CRA => Vite.

    #react #createreactapp #vitejs #typescript

  8. 4. All set up!

    It took me about an hour to set up Vite.js into desired configuration to allow that specific React+TypeScript project into running. I hope it will also help you to kickstart your migration CRA => Vite.

    #react #createreactapp #vitejs #typescript

  9. 4. All set up!

    It took me about an hour to set up Vite.js into desired configuration to allow that specific React+TypeScript project into running. I hope it will also help you to kickstart your migration CRA => Vite.

    #react #createreactapp #vitejs #typescript

  10. 4. All set up!

    It took me about an hour to set up Vite.js into desired configuration to allow that specific React+TypeScript project into running. I hope it will also help you to kickstart your migration CRA => Vite.

    #react #createreactapp #vitejs #typescript

  11. 3. Vite config

    95% of config was easy to set up, the only thing I had to search online was how to force Vite into using HTTPS with some sort of certificate. It was possible with vite-plugin-basic-ssl[1].

    [1]: github.com/vitejs/vite-plugin-

    #react #createreactapp #vitejs #typescript

  12. 3. Vite config

    95% of config was easy to set up, the only thing I had to search online was how to force Vite into using HTTPS with some sort of certificate. It was possible with vite-plugin-basic-ssl[1].

    [1]: github.com/vitejs/vite-plugin-

    #react #createreactapp #vitejs #typescript

  13. 3. Vite config

    95% of config was easy to set up, the only thing I had to search online was how to force Vite into using HTTPS with some sort of certificate. It was possible with vite-plugin-basic-ssl[1].

    [1]: github.com/vitejs/vite-plugin-

    #react #createreactapp #vitejs #typescript

  14. 3. Vite config

    95% of config was easy to set up, the only thing I had to search online was how to force Vite into using HTTPS with some sort of certificate. It was possible with vite-plugin-basic-ssl[1].

    [1]: github.com/vitejs/vite-plugin-

    #react #createreactapp #vitejs #typescript

  15. 3. Vite config

    95% of config was easy to set up, the only thing I had to search online was how to force Vite into using HTTPS with some sort of certificate. It was possible with vite-plugin-basic-ssl[1].

    [1]: github.com/vitejs/vite-plugin-

    #react #createreactapp #vitejs #typescript

  16. 1. Remove CRA & install Vite.js

    This is pretty straight-forward, I followed an example for react-ts available at Vite documentation[1].

    [1]: vitejs.dev/guide/#trying-vite-

    #react #createreactapp #vitejs #typescript

  17. 1. Remove CRA & install Vite.js

    This is pretty straight-forward, I followed an example for react-ts available at Vite documentation[1].

    [1]: vitejs.dev/guide/#trying-vite-

    #react #createreactapp #vitejs #typescript

  18. 1. Remove CRA & install Vite.js

    This is pretty straight-forward, I followed an example for react-ts available at Vite documentation[1].

    [1]: vitejs.dev/guide/#trying-vite-

    #react #createreactapp #vitejs #typescript

  19. Recently I had to replace create-react-app with Vite.js in one project at work. This is a thread of what I did to make that work:

    #react #createreactapp #vitejs #typescript

  20. Recently I had to replace create-react-app with Vite.js in one project at work. This is a thread of what I did to make that work:

    #react #createreactapp #vitejs #typescript

  21. Recently I had to replace create-react-app with Vite.js in one project at work. This is a thread of what I did to make that work:

    #react #createreactapp #vitejs #typescript

  22. Recently I had to replace create-react-app with Vite.js in one project at work. This is a thread of what I did to make that work:

    #react #createreactapp #vitejs #typescript

  23. Recently I had to replace create-react-app with Vite.js in one project at work. This is a thread of what I did to make that work:

    #react #createreactapp #vitejs #typescript

  24. Should libraries handle themselves?

    I'm working in a library for internal use. It will be acting as a utility wrapper for a larger library and will be used in two main use cases and custom projects. This is my first time building a utility library from scratch and was thinking of using Webpack to handle the bundling, tree shaking, and minification, and using for transpiling.

    Is this necessary or should this even be done?

  25. Should #NPM libraries handle #bundling themselves?

    I'm working in a library for internal use. It will be acting as a utility wrapper for a larger #nodejs library and will be used in two main use cases #CreateReactApp and custom #Webpack projects. This is my first time building a utility library from scratch and was thinking of using Webpack to handle the bundling, tree shaking, and minification, and using #babel for transpiling.

    Is this necessary or should this even be done?

    #javascript #dev

  26. Should #NPM libraries handle #bundling themselves?

    I'm working in a library for internal use. It will be acting as a utility wrapper for a larger #nodejs library and will be used in two main use cases #CreateReactApp and custom #Webpack projects. This is my first time building a utility library from scratch and was thinking of using Webpack to handle the bundling, tree shaking, and minification, and using #babel for transpiling.

    Is this necessary or should this even be done?

    #javascript #dev

  27. Should #NPM libraries handle #bundling themselves?

    I'm working in a library for internal use. It will be acting as a utility wrapper for a larger #nodejs library and will be used in two main use cases #CreateReactApp and custom #Webpack projects. This is my first time building a utility library from scratch and was thinking of using Webpack to handle the bundling, tree shaking, and minification, and using #babel for transpiling.

    Is this necessary or should this even be done?

    #javascript #dev

  28. Should #NPM libraries handle #bundling themselves?

    I'm working in a library for internal use. It will be acting as a utility wrapper for a larger #nodejs library and will be used in two main use cases #CreateReactApp and custom #Webpack projects. This is my first time building a utility library from scratch and was thinking of using Webpack to handle the bundling, tree shaking, and minification, and using #babel for transpiling.

    Is this necessary or should this even be done?

    #javascript #dev