glimmerjs / glimmer-vm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unhelpful message if mentioned helpers or modifiers does not imported into scope

lifeart opened this issue · comments

found issue, messages are correct for DEBUG environment flag, but it's not enabled in final bundles,
that's why it's too hard to debug it.

likely babel-plugin-debug-macros should handle it for dev environment, but it's not

interesting, this chunk is generated, but without data, processed with babel plugin

import {
  __esm
} from "./chunk-XNAE4CLY.js";

// node_modules/@glimmer/env/dist/modules/es2017/index.js
var DEBUG;
var init_es2017 = __esm({
  "node_modules/@glimmer/env/dist/modules/es2017/index.js"() {
    DEBUG = false;
  }
});

export {
  DEBUG,
  init_es2017
};
//# sourceMappingURL=chunk-HBQKIAIV.js.map

looks like this plugin is "touching" files before babel processing https://github.com/vitejs/vite/blob/main/packages/vite/src/node/plugins/importAnalysisBuild.ts