mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #32319 -- Added ES module support to ManifestStaticFilesStorage.
Co-authored-by: James Bligh <james.bligh@silvercloudhealth.com>
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
const rootConst = "root";
|
||||
export default rootConst;
|
||||
22
tests/staticfiles_tests/project/documents/cached/module.js
Normal file
22
tests/staticfiles_tests/project/documents/cached/module.js
Normal file
@@ -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 {
|
||||
firstVar1 as firstVarAlias,
|
||||
$second_var_2 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";
|
||||
@@ -0,0 +1,5 @@
|
||||
export const testConst = "test";
|
||||
export const firstConst = "first";
|
||||
export const secondConst = "second";
|
||||
export var firstVar1 = "test_1";
|
||||
export var SecondVar2 = "test_2";
|
||||
@@ -0,0 +1 @@
|
||||
export default null;
|
||||
Reference in New Issue
Block a user