question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Loading module & helpers in code stack instead of manually importing in HTML

See original GitHub issue

Instead of loading in all the scripts manually in the html file, it would be good to load them into the code stack using the import method. This is possible as I’ve run a few tests and it works great for what we are using it for.

Each script would require an export instead of JEEFACEFILTERAPI.<function name> in order to work.

I can raise a PR for this no problem, just wondering if you’re open to the idea?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jackbsvcommented, Aug 17, 2020

Okay will do 😃

0reactions
xavierjscommented, Oct 13, 2020

Hi @jackbsv

I have added a NPM/React/Three-Fiber boilerplate to the repository: https://github.com/jeeliz/jeelizFaceFilter/tree/master/reactThreeFiberDemo

It uses facefilter NPM module (which has been revamped too) and a specific helper.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blocked because of a disallowed MIME type (“text/html”)
Loading module from “http://localhost:8080/polyfills-es2015.js” was blocked because of a disallowed MIME type (“text/html”). browser screenshot.
Read more >
Module Methods - webpack
Dynamically load modules. Calls to import() are treated as split points, meaning the requested module and its children are split out into a...
Read more >
Documentation - Modules - TypeScript
How modules work in TypeScript. ... Modules import one another using a module loader. ... Importing is just about as easy as exporting...
Read more >
The MERN stack tutorial - LogRocket Blog
Learn all about the MERN stack in this step-by-step guide on how to use it by developing a simple CRUD application from scratch....
Read more >
Upgrading from AngularJS to Angular
For applications that use a module loader, TypeScript imports and exports ... from the HTML and instead switch to calling angular.bootstrap from JavaScript, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found