cacko/yii2-requirejs

This package is abandoned and no longer maintained. No replacement package was suggested.

Yii2 require.js

Installs: 18

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

v0.1.2 2023-01-05 01:08 UTC

This package is auto-updated.

Last update: 2023-09-05 02:30:23 UTC


README

just a bundled version of require.js to avoid random crap plugins conflicts

Install

composer require cacko\yii2-requireks

Usage

Cacko\Yii2\RequireJs\RequireJsAsset::register($view);

and then wrap your js code

((require, define, requirejs) => {
    require(['junk'], (Junk) => {
      ....
    });
})(__require.require, __require.define, __require.requirejs);