Skip to content

External dependencies are not bundled in the UMD buildΒ #179

@luisrudge

Description

@luisrudge

Current Behavior

My project has a few dependencies (qs, fast-text-encoding and es-cookie). When I build the UMD bundle, the dependencies are not bundled together with my code.

(function (global, factory) {
	typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('fast-text-encoding'), require('qs'), require('es-cookie')) :
	typeof define === 'function' && define.amd ? define(['exports', 'fast-text-encoding', 'qs', 'es-cookie'], factory) :
	(global = global || self, factory(global.createAuth0Client = {}, null, global.qs, global.Cookies));
}(this, function (exports, fastTextEncoding, qs, Cookies) { 'use strict';
  // ... some code
}));

Expected behavior

I expect all my dependencies to be bundled together with my code

Suggested solution(s)

Maybe it's a rollup config? I have no idea :(

Your environment

Software Version(s)
TSDX 0.8.0
TypeScript 3.5.3
Browser n/a
npm/Yarn npm 6.9.0
Operating System windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: docsDocumentation could be improved. Or changes that only affect docstopic: externalsRelated to configuring externals for Rollup

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions