Skip to content

Commit

Permalink
fix esm
Browse files Browse the repository at this point in the history
  • Loading branch information
deyihu committed Dec 27, 2024
1 parent 1482823 commit 7fe9ecc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const bundles = [
name: 'maptalks',
globals,
extend: true,
file: 'dist/worker.bundle.js'
file: 'src/worker.bundle.js'
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { registerWorkerAdapter, worker } from 'maptalks';
//@ts-ignore
import WORKERCODE from '../dist/worker.bundle.js';
import WORKERCODE from './worker.bundle.js';
import { isPolygon } from './tileclip';
import { BBOXtype } from './bbox';

Expand Down
1 change: 1 addition & 0 deletions src/worker.bundle.js

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

0 comments on commit 7fe9ecc

Please sign in to comment.