Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

v1.0.0

Choose a tag to compare

@jhnns jhnns released this 16 Mar 16:16
· 153 commits to master since this release
07964c4

Features

  • change expected module API (caf2aab)

BREAKING CHANGES

  • this commit introduces a major refactoring of the loader.
  • remove node 0.10 and node 0.12 support
  • the loaded module must now export a function
  • this function will be called with the loader options
  • this function must return an object with this structure
Property Type Description
code `string Buffer`
sourceMap SourceMap Optional. Will be pased to the next loader or to webpack.
ast any Optional. An Abstract Syntax Tree that will be passed to the next loader. Useful to speed up the build time if the next loader uses the same AST.
dependencies Array<string> Default: []. An array of absolute, native paths to file dependencies that need to be watched for changes.
cacheable boolean Default: false. Flag whether the code can be re-used in watch mode if none of the dependencies have changed.
  • the function may also return a promise for async results
  • switch tooling to webpack-defaults