File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -659,8 +659,7 @@ namespace :marionette do
659
659
660
660
# This task takes all the relevant Marionette atom dependencies
661
661
# (listed in func_lookup) and concatenates them to a single atoms.js
662
- # file, where each atom is assigned to a custom function name
663
- # matching the Marionette protocol.
662
+ # file.
664
663
#
665
664
# The function names are defined in the func_lookup dictionary of
666
665
# target to name.
@@ -676,13 +675,17 @@ namespace :marionette do
676
675
b = StringIO . new
677
676
b << File . read ( "javascript/marionette/COPYING" ) << "\n "
678
677
b << "\n "
678
+ b << "const EXPORTED_SYMBOLS = [\" atoms\" ];" << "\n "
679
+ b << "\n "
680
+ b << "function atoms() {};" << "\n "
681
+ b << "\n "
679
682
680
683
task . prerequisites . each do |target |
681
684
out = Rake ::Task [ target ] . out
682
685
atom = File . read ( out ) . chop
683
686
684
- b << "// target #{ target } \n "
685
- b << "var #{ func_lookup [ target ] } = #{ atom } ;\n "
687
+ b << "// target #{ target } " << " \n "
688
+ b << "atoms. #{ func_lookup [ target ] } = #{ atom } ;" << " \n "
686
689
b << "\n "
687
690
end
688
691
You can’t perform that action at this time.
0 commit comments