Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefanpenner/wrap-legacy-hbs-plugin-if-needed
https://github.com/stefanpenner/wrap-legacy-hbs-plugin-if-needed
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stefanpenner/wrap-legacy-hbs-plugin-if-needed
- Owner: stefanpenner
- Created: 2019-10-03T19:35:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T22:09:23.000Z (almost 2 years ago)
- Last Synced: 2024-10-17T18:13:02.018Z (20 days ago)
- Language: TypeScript
- Size: 329 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wrap-legacy-hbs-plugin-if-needed
[![Build Status](https://github.com/stefanpenner/wrap-legacy-hbs-plugin-if-needed/workflows/CI/badge.svg)](https://github.com/stefanpenner/wrap-legacy-hbs-plugin-if-needed/actions?workflow=CI)
This is a module that few should need to use, so if your not sure what this is
you likely dont need to care. It exists to avoid copy/pasting the code between
ember/embroider/ember-cli-htmlbars.such time as it is not longer needed, or ember provides the helper itself and
all versions of ember which do not have become EOL.
## Usage```sh
yarn add wrap-legacy-hbs-plugin-if-needed
``````js
// ESModules
import wrapLegacyPluginIfNeeded from 'wrap-legacy-hbs-plugin-if-needed';const wrappedIfNeededPlugin = wrapLegacyPluginIfNeeded(legacyOrModernHbsPlugin)
``````js
// CJS
const { default: wrapLegacyPluginIfNeeded } = require('wrap-legacy-hbs-plugin-if-needed');const wrappedIfNeededPlugin = wrapLegacyPluginIfNeeded(legacyOrModernHbsPlugin)
```