Coder Social home page Coder Social logo

esbuild-plugin-flow's Introduction

Hi ๐Ÿ‘‹, I'm Dalci Bagolin

An amateur developer

Connect with me:

dalcib dalcib dalcib

Languages and Tools:

d3js javascript mongodb nodejs react reactnative typescript

dalcib

esbuild-plugin-flow's People

Contributors

dalcib avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

esbuild-plugin-flow's Issues

ENOENT no such file or directory

While attempting to bundle the sale-client package, and setting the regex to match all .js files, the plugin throws the following error:

/.../sale-client/src/plugins/FileManageService.js:3:27: ERROR: [plugin: flow] ENOENT: no such file or directory, open '/.../node_modules/sale-client/src/plugins/GetTimeService.js'

The culprit is that src/plugins/FileManageService.js in this package has an import to ./getTimeService.js so there's a casing mismatch and indeed, the file doesn't exist. However, esbuild handles this gracefully with no plugins.

This is a situation in which I think there should be a warning emitted, but no error, passing the build back to esbuild to do its thing.

[feature] jsx support

Currently plugin always return loader 'js' for further processing, but some modules contains flowtype'd jsx code in '*.js' files...

Negative Lookahead is not a valid Go Regular Expression

Hey there. Thanks for this plugin.

Using a valid regex: /(\.js(?!on)(x)?)|(\.flow(\..+)?)$/

Esbuild throws the following error:

Build Error: Error: [flow] "onLoad" filter is not a valid Go regular expression: "(\\.js(?<!\\.json)(x)?)|(\\.flow(\\..+)?)$"

While this may not be a bug in the plugin, it's definitely not something I thought I'd run into. I'll report this to esbuild as well, but at the least I think it would be good for the docs to be updated.

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.