Skip to content

Commit

Permalink
testje
Browse files Browse the repository at this point in the history
  • Loading branch information
reindernijhoff committed Mar 18, 2024
1 parent 8c8ee71 commit 8b6e4ce
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "vanilla",
"name": "dittytoyjukebox",
"private": true,
"version": "0.0.0",
"type": "module",
Expand All @@ -15,6 +15,6 @@
"node": ">=20.0.0"
},
"dependencies": {
"dittytoy": "0.0.2-dev.cca9353"
"dittytoy": "0.0.2-dev.8c8ee71"
}
}
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@
"dist/**/*",
"README.md"
],
"main": "./dist/dittytoy.umd.cjs",
"module": "./dist/dittytoy.js",
"exports": {
".": {
"import": "./dist/dittytoy.js",
"require": "./dist/dittytoy.umd.cjs"
"import": "./dist/dittytoy.js"
}
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/dittytoy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";

const workerCode = import('./ditty-worker.js?raw');
const workletCode = import('./ditty-worklet.js?raw');
const workerCode = (await import('./ditty-worker.js?raw')).default;
const workletCode = (await import('./ditty-worklet.js?raw')).default;

export const LOOP_OPERATOR_SYNTH = 0;
export const LOOP_OPERATOR_OPTION = 1;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES2020",
"target": "esnext",
"module": "NodeNext",
"lib": [
"ESNext",
Expand Down
2 changes: 2 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import {resolve} from 'path'

export default defineConfig({
build: {
target: 'esnext',
lib: {
formats: ['es'],
name: "dittytoy",
entry: resolve(__dirname, 'src/index.js'),
}
Expand Down

0 comments on commit 8b6e4ce

Please sign in to comment.