@@ -7,15 +7,15 @@ import nord from '../src/assets/themes/nord'
7
7
import mtp from '../src/assets/themes/material-theme-palenight'
8
8
9
9
// eslint-disable-next-line antfu/no-import-dist
10
- import onig from '../../core/dist/onig .mjs'
10
+ import { wasmBinary } from '../../core/dist/wasm-inlined .mjs'
11
11
12
12
describe ( 'should' , ( ) => {
13
13
it ( 'works' , async ( ) => {
14
14
const shiki = await getHighlighterCore ( {
15
15
themes : [ nord ] ,
16
16
langs : [ js as any ] ,
17
17
loadWasm : {
18
- instantiator : obj => WebAssembly . instantiate ( onig , obj ) ,
18
+ instantiator : obj => WebAssembly . instantiate ( wasmBinary , obj ) ,
19
19
} ,
20
20
} )
21
21
@@ -32,7 +32,7 @@ describe('should', () => {
32
32
] ,
33
33
loadWasm : {
34
34
// https://github.com/WebAssembly/esm-integration/tree/main/proposals/esm-integration
35
- instantiator : obj => WebAssembly . instantiate ( onig , obj ) . then ( r => r . instance . exports ) ,
35
+ instantiator : obj => WebAssembly . instantiate ( wasmBinary , obj ) . then ( r => r . instance . exports ) ,
36
36
} ,
37
37
} )
38
38
@@ -151,7 +151,7 @@ describe('errors', () => {
151
151
themes : [ nord ] ,
152
152
langs : [ js as any ] ,
153
153
loadWasm : {
154
- instantiator : obj => WebAssembly . instantiate ( onig , obj ) ,
154
+ instantiator : obj => WebAssembly . instantiate ( wasmBinary , obj ) ,
155
155
} ,
156
156
} )
157
157
0 commit comments