Closed bichikim closed 4 years ago
There is a problem with rollup bundling.
lib/index.js
if (typeof json.script !== "undefined" && typeof json.script["@_lang"] && json.script["@_lang"].toLowerCase() === "ts") { return true; }
but your original src/index.js is
if (typeof json.script !== "undefined" && typeof json.script["@_lang"] === "string" && json.script["@_lang"].toLowerCase() === "ts") { return true; }
=== "string" is removed by RollUp
=== "string"
so
<script lang="js"> <script>
is work but
<script> <script>
is not work
Republished with version 1.0.4, should be fine now.
There is a problem with rollup bundling.
lib/index.js
but your original src/index.js is
=== "string"
is removed by RollUpso
is work but
is not work