Request a flag to disable JavaScript modules

200 views
Skip to first unread message

devside

unread,
Feb 23, 2018, 10:48:01 AM2/23/18
to Google Chrome Developer Tools
For testing purpose, I'd like to have a flag to disable Javascript modules (import/export).
That way, Chrome would read  <script nomodule> over <script type="module">.

Kayce Basques

unread,
Mar 1, 2018, 12:34:50 PM3/1/18
to Google Chrome Developer Tools
In chrome://flags it looks like you can disable modules. Type "modules" in the search box and set "Enable ECMAScript 6 modules dynamic import" to "Disable". Does that work for you?

--- Kayce (DevTools tech writer)

PhistucK

unread,
Mar 1, 2018, 12:37:27 PM3/1/18
to Google Chrome Developer Tools
I believe it only disables the dynamic import functionality - 
import('url').then((module) => {...})


PhistucK

--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/c98a3ccf-7e20-4fe8-87f1-8a87328e94f0%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages