2

As the title says, is there any way to import one SSJS library into another? I have a debugging library named debug.jss that I would like to include and use in my other SSJS libraries, but I'm not sure how to go about doing that. It seems like a pretty fundamental question, but I haven't found any answer. Thanks in advance.

Reid Rivenburgh
  • 373
  • 1
  • 9

1 Answers1

10

At the first line;

import debug;

It will import the second SSJS library.

The related documentation is here.

Serdar Basegmez
  • 3,355
  • 16
  • 20
  • 1
    I had tried this, but sadly and embarrassingly, I misspelled the library name and thought the obscure error was because you can't use import like that. Thanks for clearing that up! – Reid Rivenburgh Oct 29 '15 at 20:36