Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f622ee9
)
MDL-66307 js: Add missing plugintypes structure in subplugin read
author
Andrew Nicols
<andrew@nicols.co.uk>
Thu, 1 Aug 2019 12:52:02 +0000
(20:52 +0800)
committer
Andrew Nicols
<andrew@nicols.co.uk>
Thu, 1 Aug 2019 12:52:02 +0000
(20:52 +0800)
babel-plugin-add-module-to-define.js
patch
|
blob
|
blame
|
history
diff --git
a/babel-plugin-add-module-to-define.js
b/babel-plugin-add-module-to-define.js
index
2169dae
..
2779472
100644
(file)
--- a/
babel-plugin-add-module-to-define.js
+++ b/
babel-plugin-add-module-to-define.js
@@
-72,7
+72,7
@@
module.exports = ({ template, types }) => {
var rawContents = fs.readFileSync(file);
var subplugins = JSON.parse(rawContents);
- for (const [component, path] of Object.entries(subplugins)) {
+ for (const [component, path] of Object.entries(subplugins
.plugintypes
)) {
if (path) {
moodlePlugins[path] = component;
}
@@
-202,4
+202,4
@@
module.exports = ({ template, types }) => {
}
}
};
-};
\ No newline at end of file
+};