@marko/translator-default 5.26.0 → 5.26.2

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.
@@ -4,7 +4,7 @@ var _compiler = require("@marko/compiler");
4
4
  var _babelUtils = require("@marko/babel-utils");var _default =
5
5
 
6
6
  (entryFile, isHydrate) => {
7
- const { modules, resolveVirtualDependency, hydrateIncludeImports } =
7
+ const { resolveVirtualDependency, hydrateIncludeImports } =
8
8
  entryFile.markoOpts;
9
9
  const hydratedFiles = new Set();
10
10
  const program = entryFile.path;
@@ -164,12 +164,6 @@ var _babelUtils = require("@marko/babel-utils");var _default =
164
164
  }
165
165
 
166
166
  function importPath(path) {
167
- if (modules === "cjs") {
168
- return _compiler.types.expressionStatement(
169
- _compiler.types.callExpression(_compiler.types.identifier("require"), [_compiler.types.stringLiteral(path)]));
170
-
171
- }
172
-
173
167
  return _compiler.types.importDeclaration([], _compiler.types.stringLiteral(path));
174
168
  }
175
169
  };exports.default = _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marko/translator-default",
3
3
  "description": "Translates Marko templates to the default Marko runtime.",
4
- "version": "5.26.0",
4
+ "version": "5.26.2",
5
5
  "author": "Dylan Piercey <dpiercey@ebay.com>",
6
6
  "bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md",
7
7
  "dependencies": {
@@ -12,8 +12,8 @@
12
12
  "self-closing-tags": "^1.0.1"
13
13
  },
14
14
  "devDependencies": {
15
- "@marko/compiler": "^5.28.0",
16
- "marko": "^5.26.0"
15
+ "@marko/compiler": "^5.28.2",
16
+ "marko": "^5.26.2"
17
17
  },
18
18
  "files": [
19
19
  "dist",