Commit d73ea644 authored by Romain Casati's avatar Romain Casati
Browse files

Set path module for requirejs via 'bundles'.

parent 62391c31
......@@ -13,6 +13,7 @@
<script>
window.BASTHON_CACHE_BUSTING_TIMESTAMP = {{BASTHON_CACHE_BUSTING_TIMESTAMP}};
window.BASTHON_KERNEL_SCRIPT = "static/basthon-kernel/basthon.js";
</script>
<script type="text/javascript" src="static/components/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full,Safe&delayStartupUntil=configured&v={{BASTHON_CACHE_BUSTING_TIMESTAMP}}" charset="utf-8"></script>
......
......@@ -2,8 +2,8 @@
* Basthon part of the notebook GUI.
*/
define([
'basthon-kernel/basthon_python',
'basthon-kernel/basthon_goodies',
'Basthon',
'BasthonGoodies',
'components/pako/dist/pako',
'components/js-base64/base64',
'base/js/dialog'],
......
define(["basthon-kernel/basthon_python"], function(Basthon) {
define(["Basthon"], function(Basthon) {
"use strict";
let CLOSED = 0;
......
......@@ -30,6 +30,9 @@ var rjs_config = {
contents: 'empty:',
custom: 'empty:',
},
bundles: { 'basthon-kernel/basthon_base': ['BasthonBase'],
'basthon-kernel/basthon_goodies': ['BasthonGoodies'],
'basthon-kernel/basthon_python': ['Basthon']},
map: { // for backward compatibility
"*": {
"jqueryui": "jquery-ui",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment