diff options
| author | Gildardo Adrian Maravilla Jacome <gilmrjc@gmail.com> | 2021-01-04 20:28:01 -0600 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-05-31 11:09:48 +0200 |
| commit | 91e21836f667c784a8a63ab1f18d81f553e679cb (patch) | |
| tree | cb781866791924e0003bf2151eb9dc7a04c89096 /tests/staticfiles_tests/project/documents/cached | |
| parent | 781b44240a06f0c868254f40f36ce46c927f56d1 (diff) | |
Fixed #32319 -- Added ES module support to ManifestStaticFilesStorage.
Diffstat (limited to 'tests/staticfiles_tests/project/documents/cached')
| -rw-r--r-- | tests/staticfiles_tests/project/documents/cached/module.js | 22 | ||||
| -rw-r--r-- | tests/staticfiles_tests/project/documents/cached/module_test.js | 5 |
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/staticfiles_tests/project/documents/cached/module.js b/tests/staticfiles_tests/project/documents/cached/module.js new file mode 100644 index 0000000000..7380ad7856 --- /dev/null +++ b/tests/staticfiles_tests/project/documents/cached/module.js @@ -0,0 +1,22 @@ +// Static imports. +import rootConst from "/static/absolute_root.js"; +import testConst from "./module_test.js"; +import * as NewModule from "./module_test.js"; +import { testConst as alias } from "./module_test.js"; +import { firstConst, secondConst } from "./module_test.js"; +import { + firstVar as firstVarAlias, + secondVar as secondVarAlias +} from "./module_test.js"; +import relativeModule from "../nested/js/nested.js"; + +// Dynamic imports. +const dynamicModule = import("./module_test.js"); + +// Modules exports to aggregate modules. +export * from "./module_test.js"; +export { testConst } from "./module_test.js"; +export { + firstVar as firstVarAlias, + secondVar as secondVarAlias +} from "./module_test.js"; diff --git a/tests/staticfiles_tests/project/documents/cached/module_test.js b/tests/staticfiles_tests/project/documents/cached/module_test.js new file mode 100644 index 0000000000..b832b4e8a7 --- /dev/null +++ b/tests/staticfiles_tests/project/documents/cached/module_test.js @@ -0,0 +1,5 @@ +export const testConst = "test"; +export const firstConst = "first"; +export const secondConst = "second"; +export var firstVar = "test_1"; +export var SecondVar = "test_2"; |
