From 85a612c3dc1074ed3a2246513431d814f78f1e00 Mon Sep 17 00:00:00 2001 From: Wil Wilsman Date: Mon, 5 Apr 2021 15:28:19 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20AMD=20bundle=20(#290)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index fa7e49165..fcb6b5599 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -80,7 +80,7 @@ const plugins = { `(function() {\n${indent(bundle[file].code)}}).call(window);\n`, // support amd & commonjs modules by referencing the global 'if (typeof define === "function" && define.amd) {', - ` define(["${pkg.name}"], () => window.${options.name});`, + ` define([], () => window.${options.name});`, '} else if (typeof module === "object" && module.exports) {', ` module.exports = window.${options.name};`, '}\n'