I want to split off a big suitescript into smaller...
# suitescript
f
I want to split off a big suitescript into smaller files. I've read that I can just create a
utils.js
file have my own define block in there e.g.
define([''], function() {
and then in my suitescript file I can do
define(['./utils'], function(utils) {
. First of all is this correct? Second of all can my
utils.js
include other custom scripts and netsuite API functions. Third do I need to have NApiVersion defined in utils.js and last but not least do I need to create a Script in Netsuite or is it enough to just upload the js file (and if just JS file is enough how can I make sure that it will be bundled correctly when I wanna distribute the plugin)