Skip to content

Commit 97eee70

Browse files
Merge pull request #309 from inexorabletash/nnotepad-dumb-server
NNotepad: Fix NPM module include for serving from github.io The Vite server used for local development will automagically rewrite NPM module references from script file imports, but when serving from github.io that fails. Oops! Just use the explicit relative path to the webidl2 module.
2 parents d510706 + 0a5f9f8 commit 97eee70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nnotepad/js/nnotepad.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* global BigInt64Array, BigUint64Array, Float16Array */
22

33
import {Util} from './util.js';
4-
import * as idl from 'webidl2';
4+
import * as idl from '../../node_modules/webidl2/index.js';
55

66
// ============================================================
77
// General Utilities

0 commit comments

Comments
 (0)