Skip to content

Commit b9f1484

Browse files
authored
Structured code generation (sveltejs#3539)
1 parent 1b0e391 commit b9f1484

File tree

204 files changed

+4957
-4269
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+4957
-4269
lines changed

.eslintrc.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,7 @@ module.exports = {
2222
'arrow-spacing': 2,
2323
'no-inner-declarations': 0,
2424
'require-atomic-updates': 'off',
25-
'@typescript-eslint/indent': [
26-
'error',
27-
'tab',
28-
{
29-
SwitchCase: 1,
30-
ignoredNodes: ['TemplateLiteral']
31-
}
32-
],
25+
'@typescript-eslint/indent': 'off',
3326
'@typescript-eslint/camelcase': 'off',
3427
'@typescript-eslint/no-use-before-define': 'off',
3528
'@typescript-eslint/array-type': ['error', 'array-simple'],

package-lock.json

+86-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,13 @@
6363
"acorn": "^7.0.0",
6464
"agadoo": "^1.1.0",
6565
"c8": "^5.0.1",
66+
"code-red": "0.0.17",
6667
"codecov": "^3.5.0",
6768
"css-tree": "1.0.0-alpha22",
6869
"eslint": "^6.3.0",
6970
"eslint-plugin-import": "^2.18.2",
7071
"eslint-plugin-svelte3": "^2.7.3",
71-
"estree-walker": "^0.6.1",
72+
"estree-walker": "^0.8.1",
7273
"is-reference": "^1.1.3",
7374
"jsdom": "^15.1.1",
7475
"kleur": "^3.0.3",
@@ -84,7 +85,7 @@
8485
"rollup-plugin-sucrase": "^2.1.0",
8586
"rollup-plugin-typescript": "^1.0.1",
8687
"rollup-plugin-virtual": "^1.0.1",
87-
"source-map": "^0.6.1",
88+
"source-map": "^0.7.3",
8889
"source-map-support": "^0.5.13",
8990
"tiny-glob": "^0.2.6",
9091
"tslib": "^1.10.0",

rollup.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ const ts_plugin = is_publish
2020

2121
const external = id => id.startsWith('svelte/');
2222

23-
const inlined_estree = fs.readFileSync('./node_modules/estree-walker/index.d.ts', 'utf-8').replace(/declare.*\{((.|[\n\r])+)\}/m, '$1');
24-
fs.writeFileSync(`./compiler.d.ts`, `export { compile, parse, preprocess, VERSION } from './types/compiler/index';\n${inlined_estree}`);
23+
fs.writeFileSync(`./compiler.d.ts`, `export { compile, parse, preprocess, VERSION } from './types/compiler/index';`);
2524

2625
export default [
2726
/* runtime */

0 commit comments

Comments
 (0)