Skip to content

Commit cf56659

Browse files
committed
fix: Revert bun macro hack
1 parent 6e8588a commit cf56659

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

bun.lockb

-99 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"license": "MIT",
99
"private": true,
1010
"scripts": {
11-
"postinstall": "mkdir -p hacks/html-parser && ln -vf ./node_modules/@maxmilton/html-parser/src/* hacks/html-parser/",
1211
"build": "NODE_ENV=production bun build.ts",
1312
"dev": "NODE_ENV=development bun build.ts",
1413
"lint": "bun lint:fmt && bun lint:css && bun lint:js && bun lint:ts",
@@ -21,7 +20,7 @@
2120
},
2221
"dependencies": {
2322
"@ekscss/framework": "0.0.52",
24-
"@maxmilton/html-parser": "0.0.10",
23+
"@maxmilton/html-parser": "0.0.11",
2524
"stage1": "0.8.0-next.15",
2625
"trackx": "0.6.1"
2726
},

src/extractor.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
/* eslint-disable @typescript-eslint/prefer-for-of, unicorn/prefer-includes, unicorn/no-for-loop */
22

33
// Import source for better build optimization (especially const enum inlining).
4-
// import {
5-
// type Node,
6-
// SyntaxKind,
7-
// type Tag as Tag_,
8-
// parse,
9-
// walk,
10-
// } from '@maxmilton/html-parser/src';
11-
import { create } from 'stage1';
124
import {
135
type Node,
146
SyntaxKind,
157
type Tag as Tag_,
168
parse,
179
walk,
18-
} from '../hacks/html-parser'; // HACK: Path workaround to allow running macros in node_modules
10+
} from '@maxmilton/html-parser/src';
11+
import { create } from 'stage1';
1912

2013
interface Tag extends Omit<Tag_, 'attributeMap'> {
2114
attributeMap: Record<string, string | undefined>;

0 commit comments

Comments
 (0)