-
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat-pluginutils-create_filter
- Loading branch information
Showing
65 changed files
with
451 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@farmfe/js-plugin-visualizer': major | ||
--- | ||
|
||
rename as js-plugin-visualizer |
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
crates/compiler/tests/fixtures/tree_shake/self-executed/class/static/foo.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export class Foo { | ||
static bar() {} | ||
} | ||
|
||
Foo.bar(); |
3 changes: 3 additions & 0 deletions
3
crates/compiler/tests/fixtures/tree_shake/self-executed/class/static/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { Foo } from './foo'; | ||
|
||
console.log(Foo); |
30 changes: 30 additions & 0 deletions
30
crates/compiler/tests/fixtures/tree_shake/self-executed/class/static/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//index.js: | ||
(globalThis || window || global)['__farm_default_namespace__'] = {__FARM_TARGET_ENV__: 'browser'};(function(r,e){var t={};function n(r){return Promise.resolve(o(r))}function o(e){if(t[e])return t[e].exports;var i={id:e,exports:{}};r[e](i,i.exports,o,n);t[e]=i;return i.exports}o(e)})({"0b3bded0":function (module, exports, farmRequire, farmDynamicRequire) { | ||
console.log("runtime/index.js")(globalThis || window || global)["__farm_default_namespace__"].__farm_module_system__.setPlugins([]); | ||
} | ||
,},"0b3bded0");(function(_){for(var r in _){_[r].__farm_resource_pot__='index_e094.js';(globalThis || window || global)['__farm_default_namespace__'].__farm_module_system__.register(r,_[r])}})({"6d686e48":function (module, exports, farmRequire, farmDynamicRequire) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "Foo", { | ||
enumerable: true, | ||
get: function() { | ||
return Foo; | ||
} | ||
}); | ||
class Foo { | ||
static bar() {} | ||
} | ||
Foo.bar(); | ||
} | ||
, | ||
"b5d64806":function (module, exports, farmRequire, farmDynamicRequire) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _foo = farmRequire("6d686e48"); | ||
console.log(_foo.Foo); | ||
} | ||
,});(globalThis || window || global)['__farm_default_namespace__'].__farm_module_system__.setInitialLoadedResources([]);(globalThis || window || global)['__farm_default_namespace__'].__farm_module_system__.setDynamicModuleResourcesMap({ });var farmModuleSystem = (globalThis || window || global)['__farm_default_namespace__'].__farm_module_system__;farmModuleSystem.bootstrap();var entry = farmModuleSystem.require("b5d64806"); |
34 changes: 34 additions & 0 deletions
34
crates/compiler/tests/fixtures/tree_shake/self-executed/decl/vars_reverse_read/dep.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
const a1 = {}; | ||
|
||
const b1 = { a1 }; | ||
|
||
const c1 = { b1 }; | ||
|
||
const d1 = { c1 }; | ||
|
||
const e1 = { d1 }; | ||
|
||
export { a1 }; | ||
|
||
const a2 = {}; | ||
const b2 = { a2 }; | ||
|
||
b2.a2.aaa = 2; | ||
|
||
export { a2 }; | ||
|
||
const a3 = {}; | ||
|
||
const b3 = { a3 }; | ||
|
||
console.log(b3); | ||
|
||
const c3 = { b3 }; | ||
|
||
console.log(c3); | ||
|
||
const d3 = { c3 }; | ||
|
||
const e3 = { d3 }; | ||
|
||
export { a3 }; |
3 changes: 3 additions & 0 deletions
3
crates/compiler/tests/fixtures/tree_shake/self-executed/decl/vars_reverse_read/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { a1, a2, a3 } from './dep'; | ||
|
||
console.log(a1, a2, a3); |
52 changes: 52 additions & 0 deletions
52
crates/compiler/tests/fixtures/tree_shake/self-executed/decl/vars_reverse_read/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
//index.js: | ||
(globalThis || window || global)['__farm_default_namespace__'] = {__FARM_TARGET_ENV__: 'browser'};(function(r,e){var t={};function n(r){return Promise.resolve(o(r))}function o(e){if(t[e])return t[e].exports;var i={id:e,exports:{}};r[e](i,i.exports,o,n);t[e]=i;return i.exports}o(e)})({"0b3bded0":function (module, exports, farmRequire, farmDynamicRequire) { | ||
console.log("runtime/index.js")(globalThis || window || global)["__farm_default_namespace__"].__farm_module_system__.setPlugins([]); | ||
} | ||
,},"0b3bded0");(function(_){for(var r in _){_[r].__farm_resource_pot__='index_ddf1.js';(globalThis || window || global)['__farm_default_namespace__'].__farm_module_system__.register(r,_[r])}})({"05ee5ec7":function (module, exports, farmRequire, farmDynamicRequire) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _export(target, all) { | ||
for(var name in all)Object.defineProperty(target, name, { | ||
enumerable: true, | ||
get: all[name] | ||
}); | ||
} | ||
_export(exports, { | ||
a1: function() { | ||
return a1; | ||
}, | ||
a2: function() { | ||
return a2; | ||
}, | ||
a3: function() { | ||
return a3; | ||
} | ||
}); | ||
const a1 = {}; | ||
const a2 = {}; | ||
const b2 = { | ||
a2 | ||
}; | ||
b2.a2.aaa = 2; | ||
const a3 = {}; | ||
const b3 = { | ||
a3 | ||
}; | ||
console.log(b3); | ||
const c3 = { | ||
b3 | ||
}; | ||
console.log(c3); | ||
} | ||
, | ||
"b5d64806":function (module, exports, farmRequire, farmDynamicRequire) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _dep = farmRequire("05ee5ec7"); | ||
console.log(_dep.a1, _dep.a2, _dep.a3); | ||
} | ||
,});(globalThis || window || global)['__farm_default_namespace__'].__farm_module_system__.setInitialLoadedResources([]);(globalThis || window || global)['__farm_default_namespace__'].__farm_module_system__.setDynamicModuleResourcesMap({ });var farmModuleSystem = (globalThis || window || global)['__farm_default_namespace__'].__farm_module_system__;farmModuleSystem.bootstrap();var entry = farmModuleSystem.require("b5d64806"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,6 +157,7 @@ | |
"shulandmimi", | ||
"concurrentify", | ||
"pageerror", | ||
"rsdoctor", | ||
"deepmerge", | ||
"Mergeable", | ||
"globset" | ||
|
Oops, something went wrong.