Comparing version 0.1.4 to 0.1.5
{ | ||
"name": "decorative", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"repository": "https://github.com/kyr0/decorative", | ||
@@ -20,2 +20,3 @@ "description": "decorative.js is an ES7 micro-framework promoting @decorator pattern-driven app development.", | ||
"babel-loader": "^6.1.0", | ||
"babel-plugin-transform-decorators": "^6.1.4", | ||
"babel-plugin-syntax-class-properties": "^6.1.4", | ||
@@ -22,0 +23,0 @@ "babel-preset-es2015": "^6.1.4", |
@@ -90,9 +90,3 @@ decorative.js | ||
test: /\.js$/, | ||
loader: "babel-loader", | ||
query: { | ||
stage: 1, // <- important | ||
optional: [ | ||
"es7.decorators" // <- important | ||
] | ||
} | ||
loader: "babel-loader" | ||
} | ||
@@ -108,2 +102,12 @@ ] | ||
Additionally create a ```.babelrc``` file in your projects root directory (next to Gruntfile.js) | ||
and put it like: | ||
{ | ||
"presets": ["es2015", "stage-0"], | ||
"plugins": ["transform-decorators", "syntax-class-properties"] | ||
} | ||
This configures Babel.js to parse/transform the full spectrum of ES6+ features. | ||
## Decorators | ||
@@ -110,0 +114,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
168041
307
14