You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which would allow the following - without any configuration - in CommonJS based systems:
// load ally.min.js UMD bundlevarbundle=require('ally.js');// load the same structure as the UMD bundle, but from CommonJS modulesvarbundleFromModules=require('ally.js/ally');// load a specific modulevarmodule=require('ally.js/query/focusable');
require.config({paths: {'ally.js': 'node_modules/ally.js/amd',}});// load the same structure as the UMD bundle, but from AMD modulesvarbundleFromModules=require('ally.js/ally');// load a specific modulevarmodule=require('ally.js/query/focusable');
While discussing ally with @darobin, it became clear that using modules (with systems like browserify) is not ideal yet. We're assuming two things:
the current structure is
the proposed structure is
which would allow the following - without any configuration - in CommonJS based systems:
You can configure AMD to load the UMD:
OR you can configure AMD to load the modules:
The same applies to es6-module-loader.
The text was updated successfully, but these errors were encountered: