title: babel transpiled code use absolute imports
body: <p>Transpiling code using <code>@babel/cli</code> with the following command:</p>
  
  <pre><code>babel --plugins @babel/plugin-transform-arrow-functions www/js/origin.js --out-file www/js/result.js
  </code></pre>
  
  <p>produces a file which require imports using absolute path from my computer. Of course, running that on the server breaks as path is not found.</p>
  
  <p>Here is an example of absolute imports:</p>
  
  <pre><code>import _slicedToArray from "/Users/myself/project/node_modules/@babel/runtime/helpers/builtin/es6/slicedToArray";
  import _createClass from "/Users/myself/project/node_modules/@babel/runtime/helpers/builtin/es6/createClass";
  import _inherits from "/Users/myself/project/node_modules/@babel/runtime/helpers/builtin/es6/inherits";
  import _possibleConstructorReturn from "/Users/myself/project/node_modules/@babel/runtime/helpers/builtin/es6/possibleConstructorReturn";
  import _getPrototypeOf from "/Users/myself/project/node_modules/@babel/runtime/helpers/builtin/es6/getPrototypeOf";
  import _classCallCheck from "/Users/myself/project/node_modules/@babel/runtime/helpers/builtin/es6/classCallCheck";
  import _typeof from "/Users/myself/project/node_modules/@babel/runtime/helpers/builtin/es6/typeof";
  </code></pre>
  
  <p>Is there any way for the transpiled file to include everything it needs inline?</p>
  
  <p>I don't use any specific <code>babel.config.js</code> or <code>babelrc</code> file at the moment.</p>