Skip to content

Commit 9060331

Browse files
authored
fix(pack): node polyfills url & timers contains invalid path (#2292)
1 parent e60da3d commit 9060331

File tree

6 files changed

+506
-9
lines changed

6 files changed

+506
-9
lines changed

crates/pack-core/js/src/node-polyfills/native-url/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/pack-core/js/src/node-polyfills/timers-browserify/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/pack-tests/tests/snapshot/node_polyfill/input/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import assert from 'assert';
22
import buffer from 'buffer';
33
const stream = require('stream');
44
import { process } from 'browser-polyfill';
5+
import { urlToHttpOptions } from 'url';
6+
import timers from 'timers';
7+
8+
urlToHttpOptions;
9+
timers;
510

611
const fs = require('fs');
712

0 commit comments

Comments
 (0)