Skip to content

issues with modules in cljs task. Creates an empty file.  #196

Open
@mariuene

Description

@mariuene

Hey. I have an issue with the cljs task.

Using the cljs compiler from adzerk/boot-cljs with the :modules option added, the modules will still be in the cljs_base.js file when compiled, and not in their own assigned files.

 :compiler-options {...
                    :modules {:app  {:output-to "bar/app/main.js"  
                                     :entries '#{test.app.main}}
                              :cool {:output-to "bar/cool/cool.js"
                                     :entries '#{test.cool.cool}}}}

When adding these compiler options to the cljs task, the assigned .js files for the modules will be created, but they will not contain any code.

Using these options directly with the cljs.build.api/build function will work as wanted.

I've set up a dummy project with some example code to display the bug https://github.com/mariuene/cljs-boot-modules-issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions