Skip to content

Commit 6396a45

Browse files
committed
refactor: add missing file paths (for browser compatibility)
1 parent ee2c874 commit 6396a45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as acorn from "acorn";
2-
import XHTMLEntities from './xhtml';
2+
import XHTMLEntities from './xhtml.js';
33

44
const hexNumber = /^[\da-fA-F]+$/;
55
const decimalNumber = /^\d+$/;

test/tests-misc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from "assert";
22
import * as acorn from "acorn";
33
import jsx from "../index.js";
4-
import { testAssert } from "./driver";
4+
import { testAssert } from "./driver.js";
55

66
testAssert("// the enhanced Parser instance should have a static property 'acornJsx'.", function() {
77
const JsxParser = acorn.Parser.extend(jsx());

0 commit comments

Comments
 (0)