0.55.8 • Published 4 months ago

@startupjs/babel-plugin-startupjs-debug v0.55.8

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

@startupjs/babel-plugin-startupjs-debug

Additional transformations for development and debugging

Usage

For internal usage only.

Options

// defaults
{
  fixObserverHotReloading: true,
  addFilenamesToObserver: true
}

Example

fix hot reloading of observer() and add filename

import { observer } from 'startupjs'

export default observer(function Main ({ title }) {
  return <span>Hello</span>
}, { forwardRef: true, suspenseProps: { loader: <span>Loading</span> } })

↓ ↓ ↓ ↓ ↓ ↓

import { observer } from "startupjs";
export default observer.__wrapObserverMeta(
  observer.__makeObserver(
    function Main({ title }) {
      return <span>Hello</span>;
    },
    {
      forwardRef: true,
      suspenseProps: {
        loader: <span>Loading</span>,
      },
      filename: "/ws/dummy-project/component.js",
    }
  )
);

Licence

MIT

0.56.0-alpha.1

4 months ago

0.56.0-alpha.0

4 months ago

0.55.7

5 months ago

0.55.8

5 months ago

0.53.0

9 months ago

0.54.0

7 months ago

0.55.0-alpha.1

7 months ago

0.55.0

6 months ago

0.54.1

7 months ago

0.52.1

12 months ago

0.51.0

12 months ago

0.52.0

12 months ago

0.50.13

1 year ago

0.50.12

1 year ago

0.50.5

1 year ago

0.48.0

2 years ago

0.49.0

1 year ago

0.47.0

2 years ago

0.46.0

2 years ago

0.45.0

2 years ago

0.44.0

2 years ago

0.43.1

2 years ago

0.43.0

2 years ago