Skip to content

Instantly share code, notes, and snippets.

@eavichay
Created May 16, 2018 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eavichay/715236a2fc6460093f7751c0d4290a02 to your computer and use it in GitHub Desktop.
Save eavichay/715236a2fc6460093f7751c0d4290a02 to your computer and use it in GitHub Desktop.
Decorators only for browser-es native modules
{
"plugins": ["transform-decorators-legacy"]
}
babel src --out-dir dist --source-maps inline --copy-files
var _dec, _dec2, _class;
import "/node_modules/slim-js/Slim.js";
import { tag, template } from '/node_modules/slim-js/Decorators.js';
let _default = (_dec = tag('hello-app'), _dec2 = template('<h1>Hello</h1>'), _dec(_class = _dec2(_class = class _default extends Slim {
onRender() {
debugger;
}
}) || _class) || _class);
export { _default as default };
// HERE COMES SOURCE MAPS FOR DEV MODE
import "/node_modules/slim-js/Slim.js";
import {tag, template } from '/node_modules/slim-js/Decorators.js'
@tag('hello-app')
@template('<h1>Hello</h1>')
export default class extends Slim {
onRender () {
debugger
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment