Skip to content

Commit c01d08e

Browse files
committed
refactor: update json5 api
1 parent ae13f25 commit c01d08e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/loaders/json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default async function ( buffer, map, meta ) {
44

55
if ( this.cacheable ) this.cacheable();
66

7-
const config = options.json5.parse( buffer );
7+
const config = options.json5.fromJson5( buffer );
88

99
callback( null, `export default ${ JSON.stringify( config ) }`, map, meta );
1010
}

resources/webpack-components/web/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import HtmlPlugin from "html-webpack-plugin";
44
import MiniCssExtractPlugin from "mini-css-extract-plugin";
55
import { VueLoaderPlugin } from "vue-loader";
66
import webpack from "webpack";
7-
import json5 from "#core/json5";
7+
import * as json5 from "#core/json5";
88
import PoFile from "#core/locale/po-file";
99
import yaml from "#core/yaml";
1010
import WebpackComponent from "#lib/component";

0 commit comments

Comments
 (0)