We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 8a26186 commit 21c80c8Copy full SHA for 21c80c8
src/index.js
@@ -31,12 +31,15 @@ loaderAPI.pitch = function loader(request) {
31
const { styleTagTransform } = options;
32
const esModule =
33
typeof options.esModule !== "undefined" ? options.esModule : true;
34
- const runtimeOptions = {
35
- injectType: options.injectType,
36
- attributes: options.attributes,
37
- insert: options.insert,
38
- base: options.base,
39
- };
+ const runtimeOptions = {};
+
+ if (options.attributes) {
+ runtimeOptions.attributes = options.attributes;
+ }
40
+ if (options.base) {
41
+ runtimeOptions.base = options.base;
42
43
44
const insertFn = insertIsFunction
45
? options.insert.toString()
0 commit comments