bnaya / crossrequire Goto Github PK
View Code? Open in Web Editor NEWUse AMD & requirejs on Crossrider platform
Use AMD & requirejs on Crossrider platform
Hi, first many thanks for creating CrossRequire. I have it working wonderfully well in background extension code, however I also need to use AMD in code in popup.html which opens using:
appAPI.browserAction.setPopup({
resourcePath: 'html/popup.html',
height:420,
width:500
});
in my background-ext.js code. I have tried a variety of hacks without success so far.
Any help much appreciated.
-Neville
@Bnaya When I loaded a Web page (Web App) that uses require.js and my extension.js is using CrossRequire, my web app code screws up with it's require( [], function()
called twice. Once for the normal web page load and a second time for the extension load.
The extension loads the main.js
file from my web app, I assume via.
<script data-main="main" src="elibs/require.js"></script>
in the apps html file, which it shouldn't be. There is no main.js
in the CrossRider Extension.
Any ideas how I can resolve this would be much appreciated.
-Neville
When I create a new project on CrossRider and try to load the staging extension in the browser I am seeing the error "Uncaught SyntaxError: Unexpected token return" from this line: https://github.com/Bnaya/CrossRequire/blob/master/resources/js/CrossRequire/loader.js#L8
I'm running on OSX 10.9 and Chrome Canary
Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.