requirejs-babel
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "requirejs-babel", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"authors": [ | ||
@@ -5,0 +5,0 @@ "Michael <mikach27@gmail.com>" |
15
es6.js
var fetchText, _buildMap = {}; | ||
//>>excludeStart('excludeBabel', pragmas.excludeBabel) | ||
if (typeof window !== "undefined" && window.navigator && window.document) { | ||
@@ -25,6 +26,16 @@ fetchText = function (url, callback) { | ||
} | ||
//>>excludeEnd('excludeBabel') | ||
define(['babel'], function(babel) { | ||
define([ | ||
//>>excludeStart('excludeBabel', pragmas.excludeBabel) | ||
'babel' | ||
//>>excludeEnd('excludeBabel') | ||
], function( | ||
//>>excludeStart('excludeBabel', pragmas.excludeBabel) | ||
babel | ||
//>>excludeEnd('excludeBabel') | ||
) { | ||
return { | ||
load: function (name, req, onload, config) { | ||
//>>excludeStart('excludeBabel', pragmas.excludeBabel) | ||
var url = req.toUrl(name + '.js'); | ||
@@ -45,2 +56,3 @@ | ||
}); | ||
//>>excludeEnd('excludeBabel') | ||
}, | ||
@@ -50,3 +62,2 @@ | ||
if (moduleName in _buildMap) { | ||
// var text = jsEscape(buildMap[moduleName]); | ||
write.asModule(pluginName + '!' + moduleName, _buildMap[moduleName]); | ||
@@ -53,0 +64,0 @@ } |
{ | ||
"name": "requirejs-babel", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "An AMD loader plugin for Babel", | ||
@@ -11,3 +11,3 @@ "repository": { | ||
"scripts": { | ||
"optimize": "r.js -o baseUrl=./demo paths.es6=../es6 paths.babel=../babel-4.6.6.min name=src/index out=demo/main-built.js optimize=none", | ||
"optimize": "r.js -o demo/build.config.js", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
@@ -14,0 +14,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
1047931
14
4179
31