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

babel-preset-steezy

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

babel-preset-steezy - npm Package Compare versions

Comparing version 0.1.0-alpha.dc1f53d4 to 0.1.0

76

index.js

@@ -1,39 +0,45 @@

"use strict"
module.exports = function () {
const path = require('path')
var preset = {
presets: [
require.resolve("@babel/preset-env"),
require.resolve("@babel/preset-react")
],
plugins: [
require.resolve("@babel/plugin-syntax-dynamic-import"),
require.resolve("@babel/plugin-proposal-class-properties"),
[
require.resolve("@babel/plugin-proposal-object-rest-spread", {
useBuiltIns: true
})
const preset = {
presets: [
[
require.resolve('@babel/preset-env'),
{
targets: {
node: 'current'
},
modules: false
}
]
],
plugins: [
require.resolve('@babel/plugin-proposal-class-properties'),
[
require.resolve('@babel/plugin-proposal-object-rest-spread'), {
useBuiltIns: true
}
],
[
require.resolve('@babel/plugin-transform-runtime'), {
helpers: false,
polyfill: false,
regenerator: true,
moduleName: path.dirname(require.resolve('@babel/runtime/package'))
}
]
]
]
}
}
if (process.env.NODE_ENV === 'test') {
preset.plugins.push(preset.plugins, [
require.resolve('@babel/plugin-transform-parameters'),
[
require.resolve('@babel/plugin-transform-modules-commonjs'), {
loose: true
}
]
])
}
var env = process.env.NODE_ENV
if (env !== "development" && env !== "test" && env !== "production") {
throw new Error(`🚫 NODE_ENV must be specified`)
return preset
}
if (env === "test") {
preset.plugins.push(preset.plugins, [
[
require.resolve("@babel/plugin-transform-modules-commonjs", {
loose: true
})
]
])
}
if (env === "production") {
preset.plugins.push(preset.plugins, [
require.resolve("@babel/plugin-transform-react-inline-elements"),
require.resolve("@babel/plugin-transform-react-constant-elements")
])
}
{
"name": "babel-preset-steezy",
"version": "0.1.0-alpha.dc1f53d4",
"main": "index.js",
"version": "0.1.0",
"description": "babel preset for steezy apps",
"repository": "https://github.com/gretzky/steezy",
"files": [
"index.js"
],
"license": "MIT",
"keywords": [
"babel",
"babel7",
"es6",
"node",
"nodejs",
"steezy"
],
"dependencies": {

@@ -7,0 +19,0 @@ "@babel/core": "^7.0.0-beta.40",

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