How to use the stimulus.LogLevel.DEBUG function in stimulus

To help you get started, we’ve selected a few stimulus examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stimulusjs / stimulus / examples / app.js View on Github external
export function registerController(identifier, constructor) {
  if (!application) {
    application = Application.start({ logLevel: LogLevel.DEBUG })
  }

  if (!controllerConstructors.has(identifier)) {
    controllerConstructors.set(identifier, constructor)
    application.register(identifier, constructor)
  }
}

stimulus

Stimulus JavaScript framework

MIT
Latest version published 10 months ago

Package Health Score

81 / 100
Full package analysis