thx!
I thought I got this branch, but I had to
Do I need
I thought I got this branch, but I had to
- bower install https://github.com/bitovi/canjs.git#system-steal-domless
Do I need
- import $ from "jquery";
due to the fact, that canjs steals it anyway?
It seems working without import, my main.js is simply
- steal('core/init', function(Init){
- new Init($('body'));
- })
When I use this main.js
- import $ from "jquery";
- import Init from 'core/init/init';
- new Init($('body'));
it seems to work, too, but bower_components/jquery/dist/jquery.jis loaded twice. I assume once by import and once by steal.
And:
- paths: {
- jquery: "bower_components/jquery/dist/jquery.js"
- }
throws
- jquery/jquery.js 404 not found
while
- paths: {
- 'jquery/*': "bower_components/jquery/dist/*.js"
- }
works.