babel-plugin-inline-webgl-constants
Advanced tools
Comparing version 1.0.2 to 1.0.3
/* eslint-disable no-console */ | ||
/* global console */ | ||
// const GL = require('luma.gl/constants'); | ||
const GL = require('@luma.gl/constants'); | ||
const GL = require('@luma.gl/constants').default; | ||
@@ -6,0 +5,0 @@ const COLOR_RESET = '\x1b[0m'; |
{ | ||
"name": "babel-plugin-inline-webgl-constants", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Babel plugin for replacing long gl constants with the shorter corresponding numbers", | ||
@@ -9,3 +9,3 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://github.com/uber/luma.gl" | ||
"url": "https://github.com/visgl/luma.gl" | ||
}, | ||
@@ -19,4 +19,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@luma.gl/constants": "^8.0.0" | ||
"@luma.gl/constants": "^8.4.0" | ||
} | ||
} | ||
} |
@@ -7,3 +7,2 @@ # babel-plugin-inline-webgl-constants | ||
## Example | ||
@@ -23,3 +22,2 @@ | ||
#### in | ||
@@ -40,4 +38,2 @@ | ||
## Installation | ||
@@ -70,5 +66,5 @@ | ||
```js | ||
require("babel-core").transform("code", { | ||
plugins: ["inline-webgl-constants"] | ||
require('babel-core').transform('code', { | ||
plugins: ['inline-webgl-constants'] | ||
}); | ||
``` | ||
``` |
3680
62
67
Updated@luma.gl/constants@^8.4.0