babel-plugin-transform-import-css
Advanced tools
Comparing version 1.0.0-alpha.7 to 1.0.0-alpha.11
const t = require('@babel/types'); | ||
const babelTemplate = require('@babel/template'); | ||
const babelTemplate = require('@babel/template').default; | ||
@@ -5,0 +5,0 @@ const postcss = require('./postcss'); |
{ | ||
"name": "babel-plugin-transform-import-css", | ||
"version": "1.0.0-alpha.7", | ||
"version": "1.0.0-alpha.11", | ||
"description": "Injects imported styles (css-modules) into js", | ||
@@ -30,7 +30,5 @@ "main": "index.js", | ||
"postcss-modules-scope": "^2.1.0", | ||
"postcss-modules-values": "^1.3.0", | ||
"require-resolve": "0.0.2" | ||
}, | ||
"peerDependencies": { | ||
"@babel/generator": "7.x", | ||
"@babel/template": "7.x", | ||
@@ -41,3 +39,2 @@ "@babel/types": "7.x", | ||
"devDependencies": { | ||
"@babel/generator": "^7.4.4", | ||
"@babel/template": "^7.4.4", | ||
@@ -44,0 +41,0 @@ "@babel/types": "^7.4.4", |
@@ -8,4 +8,3 @@ const genericNames = require('generic-names'); | ||
const postcss = require('postcss'); | ||
const Values = require('postcss-modules-values'); | ||
const LocalByDefault = require('postcss-icss-selectors'); | ||
const LocalByDefault = require('postcss-icss-selectors'); // fixme: how to remove? here is postcss@6 | ||
const ExtractImports = require('postcss-modules-extract-imports'); | ||
@@ -42,3 +41,3 @@ const Scope = require('postcss-modules-scope'); | ||
...prepend, | ||
Values, | ||
// fixme: remove all of this? | ||
new LocalByDefault({ mode, generateScopedName: scopedName }), | ||
@@ -45,0 +44,0 @@ new ExtractImports({ createImportedName: undefined }), |
@@ -6,5 +6,7 @@ Injects class map imported from css-modules into js. | ||
# Requirements | ||
babel == 7, node >= 8 | ||
- babel == 7, node >= 8. | ||
<br/>**Note**. For babel@6 use previous version of plugin: [0.x.x] | ||
- babel and postcss configs for best results | ||
babel and postcss configs for best results | ||
[0.x.x]: https://github.com/a-x-/babel-plugin-transform-import-css/tree/backports | ||
@@ -55,2 +57,4 @@ # Installation & configuration | ||
**Note**. Plugin rely on some @babel/ peerDependencies, that are typically included in your project by @babel/core self. | ||
# Use Cases | ||
@@ -57,0 +61,0 @@ |
10823
10
6
88
176
+ Added@babel/parser@7.26.8(transitive)
+ Added@babel/template@7.26.8(transitive)
+ Added@babel/types@7.26.8(transitive)
- Removedpostcss-modules-values@^1.3.0
- Removed@babel/generator@7.26.5(transitive)
- Removed@babel/parser@7.26.7(transitive)
- Removed@babel/template@7.25.9(transitive)
- Removed@babel/types@7.26.7(transitive)
- Removed@jridgewell/gen-mapping@0.3.8(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removedicss-replace-symbols@1.1.0(transitive)
- Removedjsesc@3.1.0(transitive)
- Removedpostcss-modules-values@1.3.0(transitive)