Created
May 16, 2018 06:28
-
-
Save eavichay/715236a2fc6460093f7751c0d4290a02 to your computer and use it in GitHub Desktop.
Decorators only for browser-es native modules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"plugins": ["transform-decorators-legacy"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
babel src --out-dir dist --source-maps inline --copy-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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