Is it possible to configure webpack to do the equivalent of:  babel src --watch --out-dir lib   So that a directory structure that looks like this:  - src   - alpha     - beta.js     - charlie        - delta.js     - echo.js     - foxtrot       - gol...
This question already has answers here:...
I am trying to us a transpiling tool that has been developed in js and was available in github. This transpiler is capable to convert the javascript code to java,   I want to call the tool via java code so that I could read js files in java and proce...
I have written the following function in TypeScript  function initializeTasksPerUserJSON(task) {     const tasksPerUser = {         'username': task.mantisUsername,         'duration_minutes': task.mantisBugNoteDurationSum,         &#...
I've done a fair amount of searching through StackO trying to find an answer but I keep coming up with the same error, unexpected token  Whenever I use the text decorator transpile to correct the error, I still get the same problem in my componen...
I have the following require statements in my .js file which gets transpiled from ES2017, however, the browser still does not recognize these commands (require is not defined). How can I solve this?    this.e = require('../../e.js'),   this.a...
There are many things that do x -> JS and I want to do something similar where x is a POJO and spits out an es module.   Currently I am writing a string then saving it to a js file:  const mapJoin = (xs, fn) => xs.map(fn).join(', \n');...
I have these template files I'm extracting code from. They're a lot like a vue template file someView.html:  <title>Editor View</title>  <config>   <window width=512 height=512 target="main" />   <load pre=&...
Problem and question  I'll made this code:  let el = (   <div class="form-group">     <label class="control-label col-md-4">Username</label>     <div class="col-md-8">       <input type="text...
I am trying to import a module from another file in typescript. But I got the following error:  scripts.js:6 Uncaught TypeError: Cannot read property 'Rectangle' of undefined(…)   Here is my simple module in another file (module.js) but sam...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.