-
-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: render runtime template with dojang (#9447)
* feat: render runtime template with dojang * chore: remove unused files * test: update snapshot
- Loading branch information
1 parent
912f2b3
commit 9e378b1
Showing
116 changed files
with
357 additions
and
744 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
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
11 changes: 11 additions & 0 deletions
11
crates/rspack_plugin_runtime/src/runtime_module/runtime/esm_module_decorator.ejs
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,11 @@ | ||
<%- ESM_MODULE_DECORATOR %> = <%- basicFunction("module") %> { | ||
module = Object.create(module); | ||
if (!module.children) module.children = []; | ||
Object.defineProperty(module, 'exports', { | ||
enumerable: true, | ||
set: <%- basicFunction("") %> { | ||
throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id); | ||
} | ||
}); | ||
return module; | ||
}; |
11 changes: 0 additions & 11 deletions
11
crates/rspack_plugin_runtime/src/runtime_module/runtime/esm_module_decorator.js
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
crates/rspack_plugin_runtime/src/runtime_module/runtime/get_chunk_filename.ejs
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,7 @@ | ||
// This function allow to reference chunks | ||
<%- _global %> = <%- basicFunction("chunkId") %> { | ||
// return url for filenames not based on template | ||
<%- _static_urls %> | ||
// return url for filenames based on template | ||
return <%- _dynamic_url %> | ||
} |
5 changes: 0 additions & 5 deletions
5
crates/rspack_plugin_runtime/src/runtime_module/runtime/get_chunk_filename.js
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
crates/rspack_plugin_runtime/src/runtime_module/runtime/get_chunk_update_filename.ejs
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 @@ | ||
<%- GET_CHUNK_UPDATE_SCRIPT_FILENAME %> = <%- returningFunction(_filename, "chunkId") %> |
1 change: 1 addition & 0 deletions
1
crates/rspack_plugin_runtime/src/runtime_module/runtime/get_full_hash.ejs
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 @@ | ||
<%- GET_FULL_HASH %> = <%- returningFunction(_hash, "") %> |
3 changes: 0 additions & 3 deletions
3
crates/rspack_plugin_runtime/src/runtime_module/runtime/get_full_hash.js
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...es/rspack-test-tools/tests/builtinCases/plugin-html/variant/__snapshots__/output.snap.txt
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
```html title=output.html | ||
<!doctype html><html><head><meta charset="UTF-8"><title>Rspack App</title><script crossorigin integrity="sha512-x+DXHTR9Gf+81RiZZ/+tJ6EeuaSnCkhVh3+31XahWhYsovvVWNBj5p4+59s55fwpu6SnEoFQyHVz1dTpln6Qlg==" src="/runtime.js"></script><script crossorigin integrity="sha512-ni0pw7g4IWa/Ru5Zg1h1mveKp+Dexgx8hE9eE4lmEtO3cvHT4jgQpnvMcxWjc4BtqtUfCNBuJhKkseCWrSr/tQ==" src="/index.js"></script><link crossorigin href="/index.css" integrity="sha512-vjhejkvTX8D8jzzC5Lc9ToCtcEDb0/NqtYmEHOid+ycq64hvW+JTG7Dw/ACFP6rApgiYwVMbEt6Zfb8j4EoZTA==" rel="stylesheet"></head><body></body></html> | ||
<!doctype html><html><head><meta charset="UTF-8"><title>Rspack App</title><script crossorigin integrity="sha512-3wcZZCrQT5XQlyTBc3GLEmZCyPuS1J1oZ6UhzGs9T57rcSh6Fwgh+CBvWM+bpj/hVcKLG8Dm9JVZio0yxmj+ag==" src="/runtime.js"></script><script crossorigin integrity="sha512-ni0pw7g4IWa/Ru5Zg1h1mveKp+Dexgx8hE9eE4lmEtO3cvHT4jgQpnvMcxWjc4BtqtUfCNBuJhKkseCWrSr/tQ==" src="/index.js"></script><link crossorigin href="/index.css" integrity="sha512-vjhejkvTX8D8jzzC5Lc9ToCtcEDb0/NqtYmEHOid+ycq64hvW+JTG7Dw/ACFP6rApgiYwVMbEt6Zfb8j4EoZTA==" rel="stylesheet"></head><body></body></html> | ||
``` |
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
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
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
Oops, something went wrong.
9e378b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 Ecosystem CI detail: Open
9e378b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 Benchmark detail: Open