We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
grunt-starlight
1 parent 2b4049e commit 14d4639Copy full SHA for 14d4639
src/build-tools/grunt/tasks/starlight.js
@@ -68,10 +68,11 @@ module.exports = function(grunt) {
68
var start = "require'" + mainFilename + "'\n";
69
var ast = parser.parse(src + start);
70
var js = generateJS(ast);
71
+ var runtimeInit = getRuntimeInit();
72
+ js = ';(()=>{' + runtimeInit + js + '})();';
73
74
// Write the destination file.
- var runtimeInit = getRuntimeInit();
- grunt.file.write(f.dest, runtimeInit + js);
75
+ grunt.file.write(f.dest, js);
76
77
// Print a success message.
78
grunt.log.writeln('File "' + f.dest + '" created.');
0 commit comments