0.3.1 • Published 12 months ago

@isograph/babel-plugin v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@isograph/babel-plugin

This package exposes a babel plugin for use with Isograph. It is highly recommended.

Installation:

First, install the package:

yarn add @isograph/babel-plugin@0.0.0-main-b5263898

Next, add it to your .babelrc:

module.exports = {
  plugins: ['@isograph'],
};

What does it do?

This package changes calls to iso entrypoint to require calls for the generated artifact. For example, iso`entrypoint Query.HomePage` might get replaced with require("../__isograph/Query/HomePage/entrypoint.ts").

Requirements

For this babel plugin to work, it must find an isograph.config.json file. It is safe to put one at the root of your project.

:::warning yarn iso --config $PATH will work if the config is not named isograph.config.json, or is not found in the root of the project. But the babel plugin will not (yet!) :::

What about SWC?

The backlog includes developing an SWC plugin. It has not been done, yet.

0.0.0-main-2d6f39f7

12 months ago

0.0.0-main-6327b36d

12 months ago

0.0.0-main-3b6fcdcf

12 months ago

0.0.0-main-ba2ac4a0

12 months ago

0.3.0

1 year ago

0.0.0-main-66a4ed6e

12 months ago

0.3.1

1 year ago

0.0.0-main-162af2e3

12 months ago

0.0.0-main-a2cf999d

12 months ago

0.0.0-main-c73610ca

12 months ago

0.0.0-main-88ca38d2

12 months ago

0.0.0-main-eaa1d223

12 months ago

0.0.0-main-53462644

12 months ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago