@@ -712,6 +712,54 @@ console.log(
712712"
713713` ;
714714
715+ exports [` modules custom-auto-modules: js code 1` ] = `
716+ "'use strict';
717+
718+ function styleInject(css, ref) {
719+ if ( ref === void 0 ) ref = {};
720+ var insertAt = ref .insertAt ;
721+
722+ if (! css || typeof document === ' undefined' ) { return; }
723+
724+ var head = document .head || document .getElementsByTagName (' head' )[0 ];
725+ var style = document .createElement (' style' );
726+ style .type = ' text/css' ;
727+
728+ if (insertAt === ' top' ) {
729+ if (head .firstChild ) {
730+ head .insertBefore (style , head .firstChild );
731+ } else {
732+ head.appendChild(style );
733+ }
734+ } else {
735+ head .appendChild (style );
736+ }
737+
738+ if (style.styleSheet) {
739+ style .styleSheet .cssText = css ;
740+ } else {
741+ style .appendChild (document .createTextNode (css ));
742+ }
743+ }
744+
745+ var css_248z$2 = \\ ".a-test_foo { \\\\n color : red ;\\\\n } \\\\ n\\ ";
746+ var a = { \\" foo\\ " :\\" a-test_foo\\ " } ;
747+ styleInject(css_248z$2);
748+
749+ var css_248z$1 = \\ ".b { \\\\n color : red ; } \\\\ n\\ ";
750+ styleInject(css_248z$1);
751+
752+ var css_248z = \\ ".c { \\\\n color : red ;\\\\n } \\\\ n\\ ";
753+ styleInject(css_248z);
754+
755+ console.log(
756+ a,
757+ css_248z$1,
758+ css_248z
759+ );
760+ "
761+ ` ;
762+
715763exports [` modules extract: css code 1` ] = `
716764".style_foo {
717765 color : red ;
@@ -796,11 +844,10 @@ function styleInject(css, ref) {
796844 }
797845}
798846
799- var css_248z = \\ ".style_foo { \\\\n color : red ;\\\\n } \\\\ n\\ ";
800- var style = { \\" foo\\ " :\\" style_foo\\ " } ;
847+ var css_248z = \\ ".foo { \\\\n color : red ;\\\\n } \\\\ n\\ ";
801848styleInject(css_248z);
802849
803- console.log(style .foo);
850+ console.log(css_248z .foo);
804851"
805852` ;
806853
0 commit comments