Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

requirejs-babel

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

requirejs-babel - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

demo/build.config.js

2

bower.json
{
"name": "requirejs-babel",
"version": "0.0.4",
"version": "0.0.5",
"authors": [

@@ -5,0 +5,0 @@ "Michael <mikach27@gmail.com>"

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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc