-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
`browser` section `package.json` is used to expand a list of dependent files. The downstream build tool would normally do the right thing and use the `browser` section for bundling correctly. I tested the bundling itself on esbuild and WebPack, and it works correctly. All that's needed is to make sure the files are there.
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const { trace } = require('@opentelemetry/api'); | ||
|
||
void trace.getTracer('test').startSpan('test'); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# include node_modules for testing | ||
!node_modules |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require('pkg'); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[ | ||
"package.json", | ||
"test/unit/browser-remappings-disabled/input.js", | ||
"test/unit/browser-remappings-disabled/node_modules/pkg/index.js", | ||
"test/unit/browser-remappings-disabled/node_modules/pkg/package.json", | ||
"test/unit/browser-remappings-disabled/node_modules/pkg/require-main.cjs", | ||
"test/unit/browser-remappings-disabled/node_modules/pkg/subdir/import-main.js", | ||
"test/unit/browser-remappings-disabled/node_modules/pkg/subdir/package.json" | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"conditions": ["node"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# include node_modules for testing | ||
!node_modules |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require('pkg'); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[ | ||
"package.json", | ||
"test/unit/browser-remappings-malformed/input.js", | ||
"test/unit/browser-remappings-malformed/node_modules/pkg/index.js", | ||
"test/unit/browser-remappings-malformed/node_modules/pkg/package.json", | ||
"test/unit/browser-remappings-malformed/node_modules/pkg/require-main.cjs", | ||
"test/unit/browser-remappings-malformed/node_modules/pkg/subdir/import-main.js", | ||
"test/unit/browser-remappings-malformed/node_modules/pkg/subdir/package.json" | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"conditions": ["browser"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# include node_modules for testing | ||
!node_modules |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require('pkg'); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[ | ||
"package.json", | ||
"test/unit/browser-remappings-malformed2/input.js", | ||
"test/unit/browser-remappings-malformed2/node_modules/pkg/index.js", | ||
"test/unit/browser-remappings-malformed2/node_modules/pkg/package.json", | ||
"test/unit/browser-remappings-malformed2/node_modules/pkg/require-main.cjs", | ||
"test/unit/browser-remappings-malformed2/node_modules/pkg/subdir/import-main.js", | ||
"test/unit/browser-remappings-malformed2/node_modules/pkg/subdir/package.json" | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"conditions": ["browser"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# include node_modules for testing | ||
!node_modules |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require('pkg'); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ | ||
"package.json", | ||
"test/unit/browser-remappings/input.js", | ||
"test/unit/browser-remappings/node_modules/pkg/index.js", | ||
"test/unit/browser-remappings/node_modules/pkg/package.json", | ||
"test/unit/browser-remappings/node_modules/pkg/require-main.cjs", | ||
"test/unit/browser-remappings/node_modules/pkg/subdir/import-main-browser.js", | ||
"test/unit/browser-remappings/node_modules/pkg/subdir/import-main.js", | ||
"test/unit/browser-remappings/node_modules/pkg/subdir/package.json" | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"conditions": ["browser"] | ||
} |