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.


yarn add wrap-legacy-hbs-plugin-if-needed
// ESModules
import wrapLegacyPluginIfNeeded from 'wrap-legacy-hbs-plugin-if-needed';

const wrappedIfNeededPlugin = wrapLegacyPluginIfNeeded(legacyOrModernHbsPlugin)
// CJS
const { default: wrapLegacyPluginIfNeeded } = require('wrap-legacy-hbs-plugin-if-needed');

const wrappedIfNeededPlugin = wrapLegacyPluginIfNeeded(legacyOrModernHbsPlugin)





  • webpack-legacy

    Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, whi...

    1 年前
  • wct-browser-legacy

    Clientside dependencies for webcomponenttester tests installed via npm. wctbrowserlegac...

    3 个月前
  • testcafe-legacy-api

    Legacy API support for TestCafe testcafelegacyapi Build Status(https://travisci.org/DevExpress/...

    1 年前
  • terser-webpack-plugin-legacy

    Terser plugin for webpack npmnpmnpmurl nodenodenodeurl depsdepsdepsurl teststeststest...

    16 天前
  • templatizer-hbs

    Templatize for ampersand.js for those on handlebars templatizerhbs =============== Simple solution ...

    10 个月前
  • scrollIntoView和scrollIntoViewIfNeeded

    TOC 移动web页面,input获取焦点弹出系统虚拟键盘时,偶尔会出现挡住input的情况,尽管概率不大,但是十分影响用户体验。 scrollIntoView alignToTop ...

    3 年前
  • scroll-into-view-if-needed

    Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: ifneeded, behavior: smooth and ...

    6 天前
  • rollup-plugin-legacy

    Add export statements to plain scripts rolluppluginlegacy Add declarations to legacy nonmodule s...

    1 年前
  • mongoose-legacy-pluralize

    Legacy pluralization logic for mongoose mongooselegacypluralize Legacy pluralization logic for mon...

    2 年前
  • jade-legacy

    Jade version 1.x with security patches Jade Node Template Engine(http://garthdb.com/img/jadebrand...

    1 年前


扫码加入 JavaScript 社区