I want to check parameters of a function to be in a range with babel. I mean I want to change the following code: to this code: how can I do thi ...
I want to check parameters of a function to be in a range with babel. I mean I want to change the following code: to this code: how can I do thi ...
I have a Create-React-App 5 project using Yarn 3 and TypeScript 4. The web app uses a library in the same repo through Yarn's portal: protocol (Yarn w ...
At the time of this question String.prototype.at is not implemented in all browsers. I would like to use the at function on the String prototype with ...
I got "Class private methods are not enabled." error when running npm start on a project using leading # to indicate private methods. I followed this ...
I want to create global variables and be sure that they don't conflict with existing global varibale names. Example with replacing all array declarat ...
I am writing a Babel plugin in TypeScript and have been struggling to find a lot of examples or documentation doing so. For example, I am writing a vi ...
I've created a babel plugin: I expect that it should add a comment line // @@@ My precious @@@ to the top of the module and add a blank line after ...
EDIT / UPDATE: I have taken loganfsmyth's advice and pulled out babel as the first argument to the sveltify function and I can access / console log b ...
Can anyone give me a direction on how to implement python like syntax of lists array[-1] using Babel in javascript? I mean how to implement negative i ...
I'm trying to use babel-plugin-module-resolver in a react-native app. When I use plugin config like this in babel.config.js it works perfectly. But ...
In my opinion, webpack-loader has the same function as babel-plugin!! So can you help me answer the difference between the two, isn't it all through ...
im using airbnb-eslint along with babel-plugin-module-resolver. I get this error in every js file where i've used an alias to import. This error do ...
I need to add a custom attribute to components of a ReactJS app, for testing purposes. I have tried to use 2 different plugins, however, they apply th ...
It should be very simple this one, but I can't run it. I have installed the plugin according the their docs and written a simple example also accordin ...
I would like to do imports like this import Foo from '~/components/Foo' https://github.com/tleunen/babel-plugin-module-resolver If I set my .babelrc ...
I'm setting up a Next.js project with typescript. I've been following several guides but I seem to be facing an issue with import aliases. I'm not su ...
I have wrote my own module which takes a JSX string as a parameter and turns it into a javascript object, so I call it like so: This works, but wha ...
In my Vue-CLI project, when I tried using the ?? operator, I got this error: Syntax Error: SyntaxError: /Users/stevebennett/odev/freelancing/v-map ...
So I am trying to run react-native using react-native-web. It requires some babel plugins to be added. My app was created using react-app-rewired. I ...
I'm trying to convert some Ember codes to React. Here is what I want to transform. From export default Ember.Component.extend(({ didInsertElemen ...