Skip to content

Commit

Permalink
Upgrade content-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Mar 8, 2024
1 parent 71b849c commit 781ad32
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { GLOBAL_TAG, PreprocessData, TemplateLocation } from './common';
const TEMPLATE_START = `[${GLOBAL_TAG}\``;
const TEMPLATE_END = '`]';

// content-tag 1.2.2:
// content-tag 1.2.2+ (including v2+):
// The current file is a CommonJS module whose imports will produce 'require' calls;
// however, the referenced file is an ECMAScript module and cannot be imported with 'require'.
// Consider writing a dynamic 'import("content-tag")' call instead.
Expand All @@ -26,7 +26,7 @@ const p = new Preprocessor();
export const preprocess: GlintExtensionPreprocess<PreprocessData> = (source, path) => {
// NOTE: https://github.com/embroider-build/content-tag/issues/45
// All indicies are byte-index, not char-index.
let templates = p.parse(source, path);
let templates = p.parse(source, { filename: path });

let templateLocations: Array<TemplateLocation> = [];
let segments: Array<string> = [];
Expand Down
2 changes: 1 addition & 1 deletion packages/environment-ember-template-imports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"globals/index.d.ts"
],
"dependencies": {
"content-tag": "^1.2.2"
"content-tag": "^2.0.1"
},
"peerDependencies": {
"@glint/environment-ember-loose": "^1.3.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5235,10 +5235,10 @@ [email protected]:
dependencies:
safe-buffer "5.2.1"

content-tag@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/content-tag/-/content-tag-1.2.2.tgz#8cbc3cdb9957a81f7c425b138e334330dd6fd78d"
integrity sha512-9guqKIx2H+78N17otBpl8yLZbQGL5q1vBO/jDb3gF2JjixtcVpC62jDUNxjVMNoaZ09oxRX84ZOD6VX02qkVvg==
content-tag@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/content-tag/-/content-tag-2.0.1.tgz#0b908ed97e13df60b019039713ab63f1b73f2b22"
integrity sha512-jxsETSDs5NbNwyiDuIp672fUMhUyu8Qxc5MOBOJOcgW/fQESI6o5K1LBDrnEE7Bh810a685lWEZHTF4jQYGEEw==

content-type@~1.0.4:
version "1.0.5"
Expand Down

0 comments on commit 781ad32

Please sign in to comment.