Skip to content

Use a JS module system for JS rules #267

@jpg0

Description

@jpg0

Is your feature request related to a problem? Please describe.
I find the custom library loading code frustrating because:

  • It's pretty long boilerplate to import a library
  • Imports pollute the global namespace
  • Writing libraries or importing them is unfamiliar to JS coders
  • Not compatible with existing libraries

Describe the solution you'd like

  • CommonJS or AMD implementation for libraries

Describe alternatives you've considered

  • I have NOT looked into the aboves' compatibility with OH, but assumed that it's possible one way or another :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions