Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

TypeScript and 'js/main.js'

Nathan ZentnerAug 7 2024

We are using TypeScript within our application and when building custom components always have to add paths within the ‘js/main.js’. Is there any way to incorporate that “requirejs.config” in my “root.ts”?

=============

A little context here, we are building a couple smaller apps using context based routing within the larger bundle. We use a context based html start page which is in turn calls a context based ‘js/root’ (raw javascript file), which then calls ‘js/rootRoot.js’ (which is built from typescript). I'm trying to simplify the steps for developers so they can use a base build as a template zip.

<script 
type="text/javascript" 
data-main="/root/js/root" 
src="https://static.oracle.com/cdn/jet/16.1.4/3rdparty/require/require.js" 
></script> 
<script type="text/javascript" src="https://static.oracle.com/cdn/jet/16.1.4/default/js/bundles-config.js"></script> 
Comments
Post Details
Added on Aug 7 2024
7 comments
116 views