babel-preset-metal-resolve-source

1.0.2 • Public • Published

babel-preset-metal-resolve-source

A babel preset for building Metal.js projects that automatically resolves imports into full paths.

Usage

This is a babel preset that sets the resolveModuleSource option to a function that converts imports that are neither relative nor absolute (i.e. start with neither "/" nor ".") to real paths relative to node_modules

{
  "preset": ["metal-resolve-source"]
}

/babel-preset-metal-resolve-source/

    Package Sidebar

    Install

    npm i babel-preset-metal-resolve-source

    Weekly Downloads

    14

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • brunobasto
    • eduardolundgren
    • jbalsas
    • mairatma
    • rframpton