Skip to content

Commit

Permalink
fix: Fix bundled assets
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Oct 19, 2024
1 parent c76b0bb commit f1d3b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/transform-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function copy(from: string, to: string) {
export function onBundle(env: {bundled: Set<string>}, output: string, runtime: RuntimeObj) {
env.bundled.add(PACKAGE);

const root = join(__dirname, '..', 'runtime');
const root = dirname(require.resolve(join(PACKAGE, 'runtime')));

RUNTIME.forEach((file) => {
switch (true) {
Expand Down

0 comments on commit f1d3b7e

Please sign in to comment.