The Main Module: Always-Included Extension Functionality

Aaron Hardy
Jan 4, 2019 · 4 min read
Image for post
Image for post

The case for always-included extension functionality

var recorder = require('./recorder.js');module.exports = function(settings) {
recorder.startRecording();
};
var recorder = require('./recorder.js');module.exports = function(settings) {
recorder.stopRecording();
};

Defining a main module

{
...
"main": "src/lib/recorder.js"
}

With great power comes great responsibility

Adobe Tech Blog

News, updates, and thoughts related to Adobe, developers…

Aaron Hardy

Written by

I am a software engineer at Adobe working on the Launch product, primarily focusing on the Launch runtime library and extension development ecosystem.

Adobe Tech Blog

News, updates, and thoughts related to Adobe, developers, and technology.

Aaron Hardy

Written by

I am a software engineer at Adobe working on the Launch product, primarily focusing on the Launch runtime library and extension development ecosystem.

Adobe Tech Blog

News, updates, and thoughts related to Adobe, developers, and technology.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store