Skip to content

Commit af1644c

Browse files
author
Mark Skelton
committed
Babel stuff
1 parent 30ce5d8 commit af1644c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extract.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const getTemplate = require('./get-template');
44
const loadSyntax = require('postcss-syntax/load-syntax');
5-
const { parse, types, traverse, loadPartialConfig } = require('@babel/core');
5+
const { parse, types, traverse, loadOptions } = require('@babel/core');
66

77
const isStyleSheetCreate = expectAdjacentSibling(['create']);
88
const supports = {
@@ -126,7 +126,7 @@ function loadBabelOpts(opts) {
126126
let fileOpts;
127127

128128
try {
129-
fileOpts = filename && loadPartialConfig({ filename }).options;
129+
fileOpts = filename && loadOptions({ filename });
130130
} catch (ex) {
131131
//
132132
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@widen/postcss-css-in-js",
3-
"version": "0.37.5",
3+
"version": "0.37.6",
44
"description": "PostCSS syntax for parsing CSS in JS literals",
55
"keywords": [
66
"postcss",

0 commit comments

Comments
 (0)