Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A webpack loader for sweetjs
Branch: master
Failed to load latest commit information.
test Finish test case
.gitignore First pass rename readtables to readers
index.js rename readtables to readers
package.json rename readtables to readers


Use it like any other loader.

It takes a query string that contains sweetjs compiler options. The ones you most likely care about:

  • modules: a list of modules to load macros from
  • readers: a list of reader extension modules to install

example webpack.config.js

Applies the macros in macros.sjs to all .js files.

module.exports = {
  cache: true,
  entry: 'app.js',
  output: {
    filename: 'bundle.js'
  module: {
    loaders: [{
      test: /\.js$/, loader: 'sweetjs?modules[]=./macros.sjs,readers[]=reader-mod'
Something went wrong with that request. Please try again.