Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vanilla JS Setup #131

Open
jokob-sk opened this issue Jul 11, 2024 · 0 comments
Open

Vanilla JS Setup #131

jokob-sk opened this issue Jul 11, 2024 · 0 comments

Comments

@jokob-sk
Copy link

Hey there 👋

I'm having troubles setting up 3.0.1 treeviz with vanilla JS.

Previously (2 years ago) I included these 2 files

<script src="lib/treeviz/index.js"></script> 
 <script src="lib/treeviz/require.js"></script> 

I don't remember where I got these files from anymore. Just some snippets if that helps:

/** vim: et:ts=4:sw=4:sts=4
 * @license RequireJS 2.3.6 Copyright jQuery Foundation and other contributors.
 * Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
 */
var requirejs,r
...
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t]
....

Any help would be appreciated!
Thanks

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

No branches or pull requests

1 participant