ademilter/bricklayer

ES6/2015 support

nlemoine opened this issue · 5 comments

Hi!

I tried to use bricklayer in my ES6/babelified code and the import seems to fail:

import Bricklayer from 'bricklayer'

The Bricklayer results in an empty object.

f commented

Did you check out this: http://www.webpackbin.com/V1L4KdVeW

I also get Uncaught TypeError: Bricklayer is not a constructor/empty object errors even with the original npm example...

This is my whole js file:

window.$ = window.jQuery = require('jquery');
require('bootstrap-sass');

let Bricklayer = require("bricklayer");

let bricks = new Bricklayer(document.querySelector('.bricklayer'));

The whole thing is bundled with browserify, if that helps.

I forgot to mention that i'm also using Browserify to bundle my js.

doup commented

I've the same problem as @blackfyre, I've tried loading both the node and regular versions found in the dist folder.

There are solution fo this?