Socket
Socket
Sign inDemoInstall

babel-plugin-client-only-require

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

lib/index_my.js

2

lib/index.js

@@ -29,4 +29,2 @@ 'use strict';

require('asset-require-hook')(currentConfig);
var _path$node = path.node,

@@ -33,0 +31,0 @@ calleeName = _path$node.callee.name,

{
"name": "babel-plugin-client-only-require",
"version": "1.0.0",
"description": "Babel plugin to transpile require of certant extensions into client only conditionial require",
"main": "lib/index.js",
"scripts": {
"build": "babel src --out-dir lib",
"test": "mocha --compilers js:babel-core/register 'test/**/*.spec.js'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ValeryG/babel-plugin-client-only-require.git"
},
"author": "Val Gorodnichev",
"license": "ISC",
"devDependencies": {
"asset-require-hook": "^1.0.2",
"babel-cli": "^6.22.2",
"babel-preset-es2015": "^6.22.0",
"babel-preset-stage-0": "^6.22.0",
"chai": "^3.5.0",
"mocha": "^3.2.0",
"mock-fs": "^4.0.0"
},
"keywords": [
"babel-plugin",
"require",
"instrumentation",
"isomorphic",
"styles",
"client-only"
]
"name": "babel-plugin-client-only-require",
"version": "1.0.1",
"description": "Babel plugin to transpile require of certant extensions into client only conditionial require",
"main": "lib/index.js",
"scripts": {
"build": "babel src --out-dir lib",
"test": "mocha --compilers js:babel-core/register 'test/**/*.spec.js'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ValeryG/babel-plugin-client-only-require.git"
},
"author": "Val Gorodnichev",
"license": "ISC",
"devDependencies": {
"babel-cli": "^6.22.2",
"babel-preset-es2015": "^6.22.0",
"babel-preset-stage-0": "^6.22.0",
"chai": "^3.5.0",
"mocha": "^3.2.0",
"mock-fs": "^4.0.0"
},
"keywords": [
"babel-plugin",
"require",
"instrumentation",
"isomorphic",
"styles",
"client-only"
]
}

@@ -53,2 +53,6 @@ # babel-plugin-client-only-require

## How to configure
Install as dev dependency:
```
npm install --save-dev babel-plugin-client-only-require
```

@@ -61,3 +65,3 @@ To configure add plugin to .babelrc plugins section:

....
["@concur/babel-plugin-client-only-require", {
["client-only-require", {
"extensions": ["less", "scss", "css"]

@@ -64,0 +68,0 @@ }]

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc