Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138192

Node esm package

$
0
0

I just found about esm and would like to use it. I have a package which uses babel and transpiles code to lib folder on pre-publish hook

#!/bin/bash

NODE_BIN_PATH=node_modules/.bin;

rm -rf ./lib;

$NODE_BIN_PATH/babel \
-d ./lib/ src/ \
--ignore "*.spec.js,test.js";

How do I achieve this with the esm package?


Viewing all articles
Browse latest Browse all 138192

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>