asvetliakov / vscode-babel-compile-on-save

VSCode Babel Compile on save extension
1 stars 1 forks source link

Auto-transpile Settings #1

Open rfossella opened 4 years ago

rfossella commented 4 years ago

Hello, Installed plugin but having issue getting it to work- i.e. it is not auto-transpiling on save. My directory hierarchy is: src/public/js

Similar to what I do with package.json - i.e. npm run build I added the following to settings.json

"babel-compile-on-save.include": ["./public/js/pgm1.js", "./public/js/pgm2.js", "./public/js/pgm3.js", "./public/js/pgm4.js", "./public/js/main.js"], "babel-compile-on-save.outDir": "./public/build"

Is there something else I need to "activate" this plugin?

Thanks.

rfossella commented 4 years ago

Is this an active plugin?

asvetliakov commented 4 years ago

Sorry for not responding earlier. Try to use globs without relative prefix, e.g. ["public/js/pgm1.js"]

rfossella commented 4 years ago

Followed your suggestion and Plugin doesn't do anything. Changing and saving "myClass.js" does not transpile the code automatically. Is there something else I need to activate?

"babel-compile-on-save.emitTSDeclaration": true,
"babel-compile-on-save.include": ["public/js/myClass.js"],
"babel-compile-on-save.outDir": "public/build",
cnjimbo commented 3 years ago

did you run it on the windows? please go to issue #4