Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@preconstruct/hook

preconstruct53kMIT0.4.0

A require hook used internally by preconstruct

readme

changelog

@preconstruct/hook

0.4.0

Minor Changes

  • cfe7d95 Thanks @mitchellhamilton! - Add no-op file to @preconstruct/hook that will be imported by bundlers instead of the real require hook so that the preconstruct dev output will work in bundlers without a module build or bundler config changes(including for React Native's bundler, Metro)

0.3.0

Minor Changes

  • 5ad1c73 Thanks @mitchellhamilton! - Correctly only compile files within the package directory in the require hook for preconstruct dev

0.2.0

Minor Changes

  • b8d1906 Thanks @mitchellhamilton! - Only compile files within the package directory in the require hook for preconstruct dev

0.1.0

Minor Changes

  • f02cce5 #163 Thanks @mitchellhamilton! - Remove automatic inclusion of @babel/plugin-transform-runtime.

    Preconstruct no longer automatically includes @babel/plugin-transform-runtime to reduce confusion where code works when built with Preconstruct but fails if built using another tool which directly uses a project's Babel config. You should include @babel/plugin-transform-runtime in your Babel config unless it is already included.

    {
      "plugins": ["@babel/plugin-transform-runtime"]
    }

0.0.5

Patch Changes

0.0.4

Patch Changes

  • 19d36a4 - Build preconstruct with preconstruct

0.0.3

Patch Changes

0.0.2

Patch Changes

  • aea0c36 - Only install source map support when the require hook is actually run

0.0.1

Patch Changes