File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6262 "acorn-loose" : " ^8.1.0" ,
6363 "acorn-to-esprima" : " ^2.0.8" ,
6464 "astexplorer-go" : " ^1.0.0" ,
65- "astexplorer-refmt" : " ^1 .0.1 " ,
65+ "astexplorer-refmt" : " ^2 .0.0 " ,
6666 "astexplorer-syn" : " ^1.0.48" ,
6767 "babel-core" : " npm:babel-core@^6" ,
6868 "babel-eslint" : " ^7.2.3" ,
177177 "scripts" : {
178178 "dev" : " concurrently \" yarn start\" \" yarn build-dev\" " ,
179179 "start" : " serve -l 8080 ../out" ,
180- "build" : " rimraf ../out/* && cross-env NODE_ENV=production webpack --mode=production" ,
181- "build-dev" : " rimraf ../out/* && cross-env NODE_ENV=development webpack -d --mode=development" ,
182- "watch" : " webpack -dw --mode=development" ,
180+ "build" : " rimraf ../out/* && cross-env NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=production webpack --mode=production" ,
181+ "build-dev" : " rimraf ../out/* && cross-env NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=development webpack -d --mode=development" ,
182+ "watch" : " cross-env NODE_OPTIONS=--openssl-legacy-provider webpack -dw --mode=development" ,
183183 "lint" : " node_modules/eslint/bin/eslint.js src/" ,
184184 "fontcustom" : " fontcustom compile ./fontcustom/input-svg/ --config=./fontcustom/config.yml"
185185 }
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ export default {
66 ...config ,
77 id : ID ,
88 parse : function ( parser , code ) {
9- return parser . parseOcaml ( code ) ;
9+ return JSON . parse ( parser . parseOcaml ( code ) ) ;
1010 } ,
1111} ;
Original file line number Diff line number Diff line change 11import defaultParserInterface from '../utils/defaultParserInterface' ;
2- import esyPkg from 'astexplorer-refmt/esy.json' ;
32import CodeMirror from 'codemirror' ;
43import addCodeMirrorMode from './codeMirrorMode' ;
54
@@ -32,23 +31,22 @@ const locKeys = [
3231 'pval_loc' ,
3332 'pvb_loc' ,
3433] ;
35- const parserVersion = esyPkg . dependencies [ '@esy-ocaml/reason' ] ;
3634
3735export default {
3836 ...defaultParserInterface ,
3937
4038 id : ID ,
4139 displayName : ID ,
42- version : parserVersion ,
43- homepage : `https://www.npmjs. com/package/@esy-ocaml/ reason/v/ ${ parserVersion } ` ,
40+ version : '3.17.2' ,
41+ homepage : `https://github. com/reasonml/ reason` ,
4442 locationProps : new Set ( locKeys ) ,
4543
4644 loadParser ( callback ) {
4745 require ( [ 'astexplorer-refmt' ] , callback ) ;
4846 } ,
4947
5048 parse ( parser , code ) {
51- return parser . parseReason ( code ) ;
49+ return JSON . parse ( parser . parseReason ( code ) ) ;
5250 } ,
5351
5452 getNodeName ( node ) {
Original file line number Diff line number Diff line change @@ -264,14 +264,14 @@ module.exports = Object.assign({
264264 / t y p e s c r i p t \/ l i b / ,
265265 / e s p r i m a \/ d i s t \/ e s p r i m a \. j s / ,
266266 / e s p r i m a - f b \/ e s p r i m a \. j s / ,
267+ / a s t e x p l o r e r - r e f m t \/ d i s t \/ a s t _ e x p l o r e r _ r e f m t \. b c \. j s / ,
267268 // This is necessary because flow is trying to load the 'fs' module, but
268269 // dynamically. Without this webpack will throw an error at runtime.
269270 // I assume the `require(...)` call "succeeds" because 'fs' is shimmed to
270271 // be empty below.
271272 / f l o w - p a r s e r \/ f l o w _ p a r s e r \. j s / ,
272273 ] ,
273274 } ,
274-
275275 node : {
276276 child_process : 'empty' ,
277277 fs : 'empty' ,
You can’t perform that action at this time.
0 commit comments