Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Can't load vflToLayoutv3.js using requirejs #1

Open
svdoever opened this issue Nov 21, 2015 · 1 comment
Open

Can't load vflToLayoutv3.js using requirejs #1

svdoever opened this issue Nov 21, 2015 · 1 comment

Comments

@svdoever
Copy link

Hi IjzerenHein,

I'm trying to load vflToLayoutv3.js using requirejs, but can't load it because its not in the correct module format. Missing the wrapping:

define(function(require, exports, module) {
    :
}

Should I load the module in another way?

In your example code (in the documentation) for famous 0.3.5 you use LayoutController instead of AutoLayoutController. Is this correct?

AutoLayoutController.js is missing the same module wrapping...

Gr. Serge

@IjzerenHein
Copy link
Owner

Hi Serge,

I strongly recommend using a bundler like webpack or browserify to create your famo.us applications. This really speeds up load performance, especially on mobile. Are you familiar with these bundlers? They don't require the AMD wrapper.
If you really have a good use case for using require-js, I could add the AMD wrapping, but I reckoned no-one was using that anymore in the famo.us community, so I didn't bother.

cheers,
Hein

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants