Skip to content

Commit

Permalink
fix rollup warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dvirtz committed Oct 16, 2020
1 parent 563dfc9 commit 6660e7e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/reveal-test/dist/reveal-test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
var compilerExplorerDirectives = require('compiler-explorer-directives');
var MarkdownIt = require('markdown-it');
var fs = require('fs');
var promises = require('fs/promises');
require('assert');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

Expand All @@ -29,7 +27,7 @@ const parseMarkdownImpl = (path, markdown, config) => {
};

const parseMarkdown = async (path, config = {}) => {
const markdown = await promises.readFile(path, 'utf-8');
const markdown = await fs.promises.readFile(path, 'utf-8');
return parseMarkdownImpl(path, markdown, config);
};

Expand Down
3 changes: 1 addition & 2 deletions packages/reveal-test/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export default {
external: [
'compiler-explorer-directives',
'markdown-it',
'fs',
'fs/promises'
'fs'
]
};
1 change: 0 additions & 1 deletion packages/reveal-test/src/reveal-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { parseCode, compile as origCompile, CompileError } from 'compiler-explorer-directives';
import MarkdownIt from 'markdown-it';
import { readFileSync, promises } from 'fs';
import assert from 'assert';

const parseMarkdownImpl = (path, markdown, config) => {
const md = new MarkdownIt();
Expand Down

0 comments on commit 6660e7e

Please sign in to comment.