@embroider/addon-dev 4.1.4-unstable.f361b71 → 4.1.4-unstable.f56eaf1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embroider/addon-dev",
3
- "version": "4.1.4-unstable.f361b71",
3
+ "version": "4.1.4-unstable.f56eaf1",
4
4
  "description": "Utilities for addon authors",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,9 +26,9 @@
26
26
  "test": "jest"
27
27
  },
28
28
  "dependencies": {
29
- "@embroider/core": "3.4.4-unstable.f361b71",
29
+ "@embroider/core": "3.4.4-unstable.f56eaf1",
30
30
  "@rollup/pluginutils": "^4.1.1",
31
- "content-tag": "^1.1.2",
31
+ "content-tag": "^2.0.1",
32
32
  "fs-extra": "^10.0.0",
33
33
  "minimatch": "^3.0.4",
34
34
  "rollup-plugin-copy-assets": "^2.0.3",
@@ -1,2 +1,4 @@
1
1
  import type { Plugin } from 'rollup';
2
- export default function rollupGjsPlugin(): Plugin;
2
+ export default function rollupGjsPlugin({ inline_source_map }?: {
3
+ inline_source_map: boolean;
4
+ }): Plugin;
@@ -6,7 +6,7 @@ const content_tag_1 = require("content-tag");
6
6
  const PLUGIN_NAME = 'rollup-gjs-plugin';
7
7
  const processor = new content_tag_1.Preprocessor();
8
8
  // import { parse as pathParse } from 'path';
9
- function rollupGjsPlugin() {
9
+ function rollupGjsPlugin({ inline_source_map } = { inline_source_map: false }) {
10
10
  return {
11
11
  name: PLUGIN_NAME,
12
12
  load(id) {
@@ -14,7 +14,10 @@ function rollupGjsPlugin() {
14
14
  return null;
15
15
  }
16
16
  let input = (0, fs_1.readFileSync)(id, 'utf8');
17
- let code = processor.process(input, id);
17
+ let code = processor.process(input, {
18
+ filename: id,
19
+ inline_source_map,
20
+ });
18
21
  return {
19
22
  code,
20
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"rollup-gjs-plugin.js","sourceRoot":"","sources":["rollup-gjs-plugin.ts"],"names":[],"mappings":";;AAAA,qDAAmD;AAEnD,2BAAkC;AAClC,6CAA2C;AAE3C,MAAM,WAAW,GAAG,mBAAmB,CAAC;AAExC,MAAM,SAAS,GAAG,IAAI,0BAAY,EAAE,CAAC;AACrC,6CAA6C;AAE7C,SAAwB,eAAe;IACrC,OAAO;QACL,IAAI,EAAE,WAAW;QAEjB,IAAI,CAAC,EAAU;YACb,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE;gBAClB,OAAO,IAAI,CAAC;aACb;YACD,IAAI,KAAK,GAAG,IAAA,iBAAY,EAAC,EAAE,EAAE,MAAM,CAAC,CAAC;YACrC,IAAI,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACxC,OAAO;gBACL,IAAI;aACL,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC;AAfD,kCAeC;AAED,MAAM,SAAS,GAAG,IAAA,0BAAY,EAAC,cAAc,CAAC,CAAC","sourcesContent":["import { createFilter } from '@rollup/pluginutils';\nimport type { Plugin } from 'rollup';\nimport { readFileSync } from 'fs';\nimport { Preprocessor } from 'content-tag';\n\nconst PLUGIN_NAME = 'rollup-gjs-plugin';\n\nconst processor = new Preprocessor();\n// import { parse as pathParse } from 'path';\n\nexport default function rollupGjsPlugin(): Plugin {\n return {\n name: PLUGIN_NAME,\n\n load(id: string) {\n if (!gjsFilter(id)) {\n return null;\n }\n let input = readFileSync(id, 'utf8');\n let code = processor.process(input, id);\n return {\n code,\n };\n },\n };\n}\n\nconst gjsFilter = createFilter('**/*.g{j,t}s');\n"]}
1
+ {"version":3,"file":"rollup-gjs-plugin.js","sourceRoot":"","sources":["rollup-gjs-plugin.ts"],"names":[],"mappings":";;AAAA,qDAAmD;AAEnD,2BAAkC;AAClC,6CAA2C;AAE3C,MAAM,WAAW,GAAG,mBAAmB,CAAC;AAExC,MAAM,SAAS,GAAG,IAAI,0BAAY,EAAE,CAAC;AACrC,6CAA6C;AAE7C,SAAwB,eAAe,CACrC,EAAE,iBAAiB,EAAE,GAAG,EAAE,iBAAiB,EAAE,KAAK,EAAE;IAEpD,OAAO;QACL,IAAI,EAAE,WAAW;QAEjB,IAAI,CAAC,EAAU;YACb,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE;gBAClB,OAAO,IAAI,CAAC;aACb;YACD,IAAI,KAAK,GAAG,IAAA,iBAAY,EAAC,EAAE,EAAE,MAAM,CAAC,CAAC;YACrC,IAAI,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE;gBAClC,QAAQ,EAAE,EAAE;gBACZ,iBAAiB;aAClB,CAAC,CAAC;YACH,OAAO;gBACL,IAAI;aACL,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC;AApBD,kCAoBC;AAED,MAAM,SAAS,GAAG,IAAA,0BAAY,EAAC,cAAc,CAAC,CAAC","sourcesContent":["import { createFilter } from '@rollup/pluginutils';\nimport type { Plugin } from 'rollup';\nimport { readFileSync } from 'fs';\nimport { Preprocessor } from 'content-tag';\n\nconst PLUGIN_NAME = 'rollup-gjs-plugin';\n\nconst processor = new Preprocessor();\n// import { parse as pathParse } from 'path';\n\nexport default function rollupGjsPlugin(\n { inline_source_map } = { inline_source_map: false }\n): Plugin {\n return {\n name: PLUGIN_NAME,\n\n load(id: string) {\n if (!gjsFilter(id)) {\n return null;\n }\n let input = readFileSync(id, 'utf8');\n let code = processor.process(input, {\n filename: id,\n inline_source_map,\n });\n return {\n code,\n };\n },\n };\n}\n\nconst gjsFilter = createFilter('**/*.g{j,t}s');\n"]}