@nibling/editor 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/vite.js +3 -1
  2. package/package.json +1 -1
package/dist/vite.js CHANGED
@@ -25,7 +25,9 @@ export function nibEditor(options = {}) {
25
25
  return {
26
26
  name: 'nibling-editor',
27
27
  // The tokenizer is a module worker that loads grammar chunks on demand, which IIFE can't split.
28
- config: () => ({ worker: { format: 'es' } }),
28
+ // Pre-bundling would move the element away from the worker module its `new URL('./worker.js',
29
+ // import.meta.url)` names, so the dev server serves the package as published.
30
+ config: () => ({ worker: { format: 'es' }, optimizeDeps: { exclude: ['@nibling/editor'] } }),
29
31
  configResolved(config) {
30
32
  base = config.base;
31
33
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nibling/editor",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "A code editor element for the web, with a headless core and TextMate grammars tokenized off the main thread",
5
5
  "keywords": [
6
6
  "editor",