|
|
|
@ -26,7 +26,13 @@ const nodeVersionMatch = /^v(\d)/.exec(process.version);
|
|
|
|
|
const legacy = +nodeVersionMatch[1] < 6;
|
|
|
|
|
const babelrc = require("../../package.json").babel;
|
|
|
|
|
|
|
|
|
|
require.extensions[".html"] = function(module, filename) {
|
|
|
|
|
const Object_assign = Object.assign;
|
|
|
|
|
|
|
|
|
|
describe("runtime", () => {
|
|
|
|
|
before(() => {
|
|
|
|
|
svelte = loadSvelte(true);
|
|
|
|
|
|
|
|
|
|
require.extensions[".html"] = function(module, filename) {
|
|
|
|
|
const options = Object.assign(
|
|
|
|
|
{ filename, name: getName(filename) },
|
|
|
|
|
compileOptions
|
|
|
|
@ -36,13 +42,8 @@ require.extensions[".html"] = function(module, filename) {
|
|
|
|
|
if (legacy) code = require('babel-core').transform(code, babelrc).code;
|
|
|
|
|
|
|
|
|
|
return module._compile(code, filename);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const Object_assign = Object.assign;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
describe("runtime", () => {
|
|
|
|
|
before(() => {
|
|
|
|
|
svelte = loadSvelte(true);
|
|
|
|
|
return setupHtmlEqual();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|