1.0.5 • Published 7 years ago

hoist-inline-decorator-functions-loader v1.0.5

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

Introduction

This is a webpack loader that takes decorators with inline function declarations and hoists the functions into the toplevel module scope, adding an export keyword as well.

For example, a file like:

class Foo {
  @select(s => s.foo.bar) myProperty;
}

Becomes:

export function stateSelector_8fcd(s) {
  return s.foo.bar;
}

class Foo {
  @select(stateSelector_8fcd) myProperty;
}

This is to work around issues with the Angular AoT compiler. Once they stop complaining about non-exported functions, then this loader can be deprecated.

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago