-
Notifications
You must be signed in to change notification settings - Fork 106
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
run spark platform mjs before source #2004
base: _webgl
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## _webgl #2004 +/- ##
==========================================
- Coverage 76.79% 75.33% -1.47%
==========================================
Files 141 143 +2
Lines 21076 21617 +541
==========================================
+ Hits 16186 16285 +99
- Misses 4890 5332 +442
Continue to review full report at Codecov.
|
examples/pxScene2d/src/initGL.js
Outdated
// define platform | ||
var platformsource = ""; | ||
if (filename.indexOf(".mjs") != -1) { | ||
let platformfile = await getFile(filename.substring(0, filename.lastIndexOf("/")+1) + "lib/lightning-spark.js"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use path.dirname, url.resolve please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed, please review the same
// define platform | ||
var platformsource = ""; | ||
if (filename.indexOf(".mjs") != -1) { | ||
let platformfile = await getFile(filename.substring(0, filename.lastIndexOf("/")+1) + "lib/lightning-spark.js"); | ||
let platformfile = await getFile(urlmain.resolve(path.dirname(filename) + "/", "lib/lightning-spark.js")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just let platformfile = await getFile(urlmain.resolve(filename, "lib/lightning-spark.js")); is enough, however your code works too
No description provided.