We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8fdaad commit 532354eCopy full SHA for 532354e
āsrc/plugin.ts
@@ -33,12 +33,20 @@ export function corejsPlugin(
33
format: "esm",
34
modules: options.modules,
35
exclude: options.exclude,
36
- targets: options.targets || browserslist.loadConfig({}),
+ targets:
37
+ options.targets ||
38
+ (browserslist.findConfig(".") || browserslist.loadConfig({})
39
+ ? browserslist()
40
+ : undefined),
41
summary: {
42
comment: options.summary,
43
},
44
}
45
46
+ if (process.env.NODE_ENV === "development") {
47
+ console.debug("browser targets", config.targets)
48
+ }
49
+
50
return {
51
name: "core-js",
52
async transform(code, id) {
0 commit comments