svelte-on-rails 0.0.2 → 0.0.5
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.
- checksums.yaml +4 -4
- data/README.md +29 -14
- data/lib/svelte_on_rails/node_modules/@types/estree/README.md +15 -15
- data/lib/svelte_on_rails/node_modules/@types/resolve/README.md +16 -16
- data/lib/svelte_on_rails/node_modules/rollup/dist/bin/rollup +70 -70
- data/lib/svelte_on_rails/node_modules/rollup-plugin-svelte/LICENSE +7 -7
- data/lib/svelte_on_rails/node_modules/rollup-plugin-svelte/README.md +135 -135
- data/lib/svelte_on_rails/node_modules/rollup-plugin-svelte/index.d.ts +43 -43
- data/lib/svelte_on_rails/node_modules/rollup-plugin-svelte/index.js +196 -196
- data/lib/svelte_on_rails/node_modules/rollup-plugin-svelte/package.json +48 -48
- data/lib/svelte_on_rails/node_modules/svelte-preprocess/LICENSE +7 -7
- data/lib/svelte_on_rails/node_modules/typescript/LICENSE.txt +55 -55
- data/lib/svelte_on_rails/node_modules/typescript/README.md +50 -50
- data/lib/svelte_on_rails/node_modules/typescript/ThirdPartyNoticeText.txt +193 -193
- metadata +3 -18
@@ -1,43 +1,43 @@
|
|
1
|
-
import { Plugin, RollupWarning } from 'rollup';
|
2
|
-
import { PreprocessorGroup } from 'svelte/types/compiler/preprocess';
|
3
|
-
import { CompileOptions } from 'svelte/types/compiler/interfaces';
|
4
|
-
|
5
|
-
type Arrayable<T> = T | T[];
|
6
|
-
|
7
|
-
type WarningHandler = (warning: RollupWarning | string) => void;
|
8
|
-
|
9
|
-
interface Options {
|
10
|
-
/** One or more minimatch patterns */
|
11
|
-
include: Arrayable<string>;
|
12
|
-
|
13
|
-
/** One or more minimatch patterns */
|
14
|
-
exclude: Arrayable<string>;
|
15
|
-
|
16
|
-
/**
|
17
|
-
* By default, all ".svelte" files are compiled
|
18
|
-
* @default ['.svelte']
|
19
|
-
*/
|
20
|
-
extensions: string[];
|
21
|
-
|
22
|
-
/**
|
23
|
-
* Optionally, preprocess components with svelte.preprocess:
|
24
|
-
* @see https://svelte.dev/docs#svelte_preprocess
|
25
|
-
*/
|
26
|
-
preprocess: Arrayable<PreprocessorGroup>;
|
27
|
-
// {
|
28
|
-
// style: ({ content }) => {
|
29
|
-
// return transformStyles(content);
|
30
|
-
// }
|
31
|
-
// },
|
32
|
-
|
33
|
-
/** Emit Svelte styles as virtual CSS files for other plugins to process. */
|
34
|
-
emitCss: boolean;
|
35
|
-
|
36
|
-
/** Options passed to `svelte.compile` method. */
|
37
|
-
compilerOptions: CompileOptions;
|
38
|
-
|
39
|
-
/** Custom warnings handler; defers to Rollup as default. */
|
40
|
-
onwarn(warning: RollupWarning, handler: WarningHandler): void;
|
41
|
-
}
|
42
|
-
|
43
|
-
export default function svelte(options?: Partial<Options>): Plugin;
|
1
|
+
import { Plugin, RollupWarning } from 'rollup';
|
2
|
+
import { PreprocessorGroup } from 'svelte/types/compiler/preprocess';
|
3
|
+
import { CompileOptions } from 'svelte/types/compiler/interfaces';
|
4
|
+
|
5
|
+
type Arrayable<T> = T | T[];
|
6
|
+
|
7
|
+
type WarningHandler = (warning: RollupWarning | string) => void;
|
8
|
+
|
9
|
+
interface Options {
|
10
|
+
/** One or more minimatch patterns */
|
11
|
+
include: Arrayable<string>;
|
12
|
+
|
13
|
+
/** One or more minimatch patterns */
|
14
|
+
exclude: Arrayable<string>;
|
15
|
+
|
16
|
+
/**
|
17
|
+
* By default, all ".svelte" files are compiled
|
18
|
+
* @default ['.svelte']
|
19
|
+
*/
|
20
|
+
extensions: string[];
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Optionally, preprocess components with svelte.preprocess:
|
24
|
+
* @see https://svelte.dev/docs#svelte_preprocess
|
25
|
+
*/
|
26
|
+
preprocess: Arrayable<PreprocessorGroup>;
|
27
|
+
// {
|
28
|
+
// style: ({ content }) => {
|
29
|
+
// return transformStyles(content);
|
30
|
+
// }
|
31
|
+
// },
|
32
|
+
|
33
|
+
/** Emit Svelte styles as virtual CSS files for other plugins to process. */
|
34
|
+
emitCss: boolean;
|
35
|
+
|
36
|
+
/** Options passed to `svelte.compile` method. */
|
37
|
+
compilerOptions: CompileOptions;
|
38
|
+
|
39
|
+
/** Custom warnings handler; defers to Rollup as default. */
|
40
|
+
onwarn(warning: RollupWarning, handler: WarningHandler): void;
|
41
|
+
}
|
42
|
+
|
43
|
+
export default function svelte(options?: Partial<Options>): Plugin;
|
@@ -1,196 +1,196 @@
|
|
1
|
-
const path = require('path');
|
2
|
-
const fs = require('fs');
|
3
|
-
const { resolve } = require('resolve.exports');
|
4
|
-
const { createFilter } = require('@rollup/pluginutils');
|
5
|
-
const svelte = require('svelte/compiler');
|
6
|
-
|
7
|
-
const PREFIX = '[rollup-plugin-svelte]';
|
8
|
-
|
9
|
-
const majorVersion = Number(svelte.VERSION.split('.')[0]);
|
10
|
-
|
11
|
-
const plugin_options = new Set([
|
12
|
-
'emitCss',
|
13
|
-
'exclude',
|
14
|
-
'extensions',
|
15
|
-
'include',
|
16
|
-
'onwarn',
|
17
|
-
'preprocess',
|
18
|
-
]);
|
19
|
-
|
20
|
-
const svelte_module_regex = /\.svelte(\.[^./\\]+)*\.(js|ts)$/;
|
21
|
-
|
22
|
-
let warned = false;
|
23
|
-
|
24
|
-
/**
|
25
|
-
* @param [options] {Partial<import('.').Options>}
|
26
|
-
* @returns {import('rollup').Plugin}
|
27
|
-
*/
|
28
|
-
module.exports = function (options = {}) {
|
29
|
-
const { compilerOptions = {}, ...rest } = options;
|
30
|
-
const extensions = rest.extensions || ['.svelte'];
|
31
|
-
const filter = createFilter(rest.include, rest.exclude);
|
32
|
-
|
33
|
-
if (majorVersion === 3) {
|
34
|
-
compilerOptions.format = 'esm';
|
35
|
-
}
|
36
|
-
|
37
|
-
for (const key in rest) {
|
38
|
-
if (plugin_options.has(key)) continue;
|
39
|
-
console.warn(
|
40
|
-
`${PREFIX} Unknown "${key}" option. Please use "compilerOptions" for any Svelte compiler configuration.`
|
41
|
-
);
|
42
|
-
}
|
43
|
-
|
44
|
-
// [filename]:[chunk]
|
45
|
-
const cache_emit = new Map();
|
46
|
-
const { onwarn, emitCss = true } = rest;
|
47
|
-
|
48
|
-
if (emitCss) {
|
49
|
-
const cssOptionValue = majorVersion > 3 ? 'external' : false;
|
50
|
-
if (compilerOptions.css) {
|
51
|
-
console.warn(
|
52
|
-
`${PREFIX} Forcing \`"compilerOptions.css": ${
|
53
|
-
typeof cssOptionValue === 'string' ? `"${cssOptionValue}"` : cssOptionValue
|
54
|
-
}\` because "emitCss" was truthy.`
|
55
|
-
);
|
56
|
-
}
|
57
|
-
compilerOptions.css = cssOptionValue;
|
58
|
-
}
|
59
|
-
|
60
|
-
return {
|
61
|
-
name: 'svelte',
|
62
|
-
|
63
|
-
/**
|
64
|
-
* Resolve an import's full filepath.
|
65
|
-
*/
|
66
|
-
async resolveId(importee, importer, options) {
|
67
|
-
if (cache_emit.has(importee)) return importee;
|
68
|
-
if (!importer || importee[0] === '.' || importee[0] === '\0' || path.isAbsolute(importee))
|
69
|
-
return null;
|
70
|
-
|
71
|
-
// if this is a bare import, see if there's a valid pkg.svelte
|
72
|
-
const parts = importee.split('/');
|
73
|
-
|
74
|
-
let name = parts.shift();
|
75
|
-
if (name && name[0] === '@') {
|
76
|
-
name += `/${parts.shift()}`;
|
77
|
-
}
|
78
|
-
|
79
|
-
const entry = parts.join('/') || '.';
|
80
|
-
|
81
|
-
let pkg;
|
82
|
-
let dir;
|
83
|
-
|
84
|
-
let search_dir = importer;
|
85
|
-
while (search_dir !== (search_dir = path.dirname(search_dir))) {
|
86
|
-
dir = path.join(search_dir, 'node_modules', name);
|
87
|
-
const file = path.join(dir, 'package.json');
|
88
|
-
if (fs.existsSync(file)) {
|
89
|
-
pkg = JSON.parse(fs.readFileSync(file, 'utf-8'));
|
90
|
-
break;
|
91
|
-
}
|
92
|
-
}
|
93
|
-
|
94
|
-
if (!pkg) return;
|
95
|
-
|
96
|
-
// resolve pkg.svelte first for backwards compatibility
|
97
|
-
// we should resolve it after exports longer-term
|
98
|
-
if (entry === '.' && pkg.svelte) {
|
99
|
-
return path.resolve(dir, pkg.svelte);
|
100
|
-
}
|
101
|
-
|
102
|
-
const resolved = await this.resolve(importee, importer, { skipSelf: true, ...options });
|
103
|
-
|
104
|
-
// if we can't resolve this import without the `svelte` condition, warn the user
|
105
|
-
if (!resolved) {
|
106
|
-
try {
|
107
|
-
resolve(pkg, entry, { conditions: ['svelte'] });
|
108
|
-
|
109
|
-
if (!warned) {
|
110
|
-
console.error(
|
111
|
-
"\n\u001B[1m\u001B[31mWARNING: Your @rollup/plugin-node-resolve configuration's 'exportConditions' array should include 'svelte'. See https://github.com/sveltejs/rollup-plugin-svelte#svelte-exports-condition for more information\u001B[39m\u001B[22m\n"
|
112
|
-
);
|
113
|
-
warned = true;
|
114
|
-
}
|
115
|
-
} catch (e) {
|
116
|
-
// do nothing, this isn't a Svelte library
|
117
|
-
}
|
118
|
-
}
|
119
|
-
},
|
120
|
-
|
121
|
-
/**
|
122
|
-
* Returns CSS contents for a file, if ours
|
123
|
-
*/
|
124
|
-
load(id) {
|
125
|
-
return cache_emit.get(id) || null;
|
126
|
-
},
|
127
|
-
|
128
|
-
/**
|
129
|
-
* Transforms a `.svelte` file into a `.js` file.
|
130
|
-
* NOTE: If `emitCss`, append static `import` to virtual CSS file.
|
131
|
-
*/
|
132
|
-
async transform(code, id) {
|
133
|
-
if (!filter(id)) return null;
|
134
|
-
|
135
|
-
if (majorVersion > 4 && svelte_module_regex.test(id)) {
|
136
|
-
const compiled = svelte.compileModule(code, {
|
137
|
-
filename: id,
|
138
|
-
dev: compilerOptions.dev,
|
139
|
-
generate: compilerOptions.generate,
|
140
|
-
});
|
141
|
-
|
142
|
-
(compiled.warnings || []).forEach((warning) => {
|
143
|
-
if (onwarn) onwarn(warning, this.warn);
|
144
|
-
else this.warn(warning);
|
145
|
-
});
|
146
|
-
|
147
|
-
return compiled.js;
|
148
|
-
}
|
149
|
-
|
150
|
-
const extension = path.extname(id);
|
151
|
-
if (!~extensions.indexOf(extension)) return null;
|
152
|
-
|
153
|
-
const dependencies = [];
|
154
|
-
const filename = path.relative(process.cwd(), id);
|
155
|
-
const svelte_options = { ...compilerOptions, filename };
|
156
|
-
|
157
|
-
if (rest.preprocess) {
|
158
|
-
const processed = await svelte.preprocess(code, rest.preprocess, { filename });
|
159
|
-
if (processed.dependencies) dependencies.push(...processed.dependencies);
|
160
|
-
if (processed.map) svelte_options.sourcemap = processed.map;
|
161
|
-
code = processed.code;
|
162
|
-
}
|
163
|
-
|
164
|
-
const compiled = svelte.compile(code, svelte_options);
|
165
|
-
|
166
|
-
(compiled.warnings || []).forEach((warning) => {
|
167
|
-
if (
|
168
|
-
!emitCss &&
|
169
|
-
(warning.code === 'css-unused-selector' || warning.code === 'css_unused_selector')
|
170
|
-
) {
|
171
|
-
return;
|
172
|
-
}
|
173
|
-
|
174
|
-
if (onwarn) {
|
175
|
-
onwarn(warning, this.warn);
|
176
|
-
} else {
|
177
|
-
this.warn(warning);
|
178
|
-
}
|
179
|
-
});
|
180
|
-
|
181
|
-
if (emitCss && compiled.css && compiled.css.code) {
|
182
|
-
const fname = id.replace(new RegExp(`\\${extension}$`), '.css');
|
183
|
-
compiled.js.code += `\nimport ${JSON.stringify(fname)};\n`;
|
184
|
-
cache_emit.set(fname, compiled.css);
|
185
|
-
}
|
186
|
-
|
187
|
-
if (this.addWatchFile) {
|
188
|
-
dependencies.forEach(this.addWatchFile);
|
189
|
-
} else {
|
190
|
-
compiled.js.dependencies = dependencies;
|
191
|
-
}
|
192
|
-
|
193
|
-
return compiled.js;
|
194
|
-
},
|
195
|
-
};
|
196
|
-
};
|
1
|
+
const path = require('path');
|
2
|
+
const fs = require('fs');
|
3
|
+
const { resolve } = require('resolve.exports');
|
4
|
+
const { createFilter } = require('@rollup/pluginutils');
|
5
|
+
const svelte = require('svelte/compiler');
|
6
|
+
|
7
|
+
const PREFIX = '[rollup-plugin-svelte]';
|
8
|
+
|
9
|
+
const majorVersion = Number(svelte.VERSION.split('.')[0]);
|
10
|
+
|
11
|
+
const plugin_options = new Set([
|
12
|
+
'emitCss',
|
13
|
+
'exclude',
|
14
|
+
'extensions',
|
15
|
+
'include',
|
16
|
+
'onwarn',
|
17
|
+
'preprocess',
|
18
|
+
]);
|
19
|
+
|
20
|
+
const svelte_module_regex = /\.svelte(\.[^./\\]+)*\.(js|ts)$/;
|
21
|
+
|
22
|
+
let warned = false;
|
23
|
+
|
24
|
+
/**
|
25
|
+
* @param [options] {Partial<import('.').Options>}
|
26
|
+
* @returns {import('rollup').Plugin}
|
27
|
+
*/
|
28
|
+
module.exports = function (options = {}) {
|
29
|
+
const { compilerOptions = {}, ...rest } = options;
|
30
|
+
const extensions = rest.extensions || ['.svelte'];
|
31
|
+
const filter = createFilter(rest.include, rest.exclude);
|
32
|
+
|
33
|
+
if (majorVersion === 3) {
|
34
|
+
compilerOptions.format = 'esm';
|
35
|
+
}
|
36
|
+
|
37
|
+
for (const key in rest) {
|
38
|
+
if (plugin_options.has(key)) continue;
|
39
|
+
console.warn(
|
40
|
+
`${PREFIX} Unknown "${key}" option. Please use "compilerOptions" for any Svelte compiler configuration.`
|
41
|
+
);
|
42
|
+
}
|
43
|
+
|
44
|
+
// [filename]:[chunk]
|
45
|
+
const cache_emit = new Map();
|
46
|
+
const { onwarn, emitCss = true } = rest;
|
47
|
+
|
48
|
+
if (emitCss) {
|
49
|
+
const cssOptionValue = majorVersion > 3 ? 'external' : false;
|
50
|
+
if (compilerOptions.css) {
|
51
|
+
console.warn(
|
52
|
+
`${PREFIX} Forcing \`"compilerOptions.css": ${
|
53
|
+
typeof cssOptionValue === 'string' ? `"${cssOptionValue}"` : cssOptionValue
|
54
|
+
}\` because "emitCss" was truthy.`
|
55
|
+
);
|
56
|
+
}
|
57
|
+
compilerOptions.css = cssOptionValue;
|
58
|
+
}
|
59
|
+
|
60
|
+
return {
|
61
|
+
name: 'svelte',
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Resolve an import's full filepath.
|
65
|
+
*/
|
66
|
+
async resolveId(importee, importer, options) {
|
67
|
+
if (cache_emit.has(importee)) return importee;
|
68
|
+
if (!importer || importee[0] === '.' || importee[0] === '\0' || path.isAbsolute(importee))
|
69
|
+
return null;
|
70
|
+
|
71
|
+
// if this is a bare import, see if there's a valid pkg.svelte
|
72
|
+
const parts = importee.split('/');
|
73
|
+
|
74
|
+
let name = parts.shift();
|
75
|
+
if (name && name[0] === '@') {
|
76
|
+
name += `/${parts.shift()}`;
|
77
|
+
}
|
78
|
+
|
79
|
+
const entry = parts.join('/') || '.';
|
80
|
+
|
81
|
+
let pkg;
|
82
|
+
let dir;
|
83
|
+
|
84
|
+
let search_dir = importer;
|
85
|
+
while (search_dir !== (search_dir = path.dirname(search_dir))) {
|
86
|
+
dir = path.join(search_dir, 'node_modules', name);
|
87
|
+
const file = path.join(dir, 'package.json');
|
88
|
+
if (fs.existsSync(file)) {
|
89
|
+
pkg = JSON.parse(fs.readFileSync(file, 'utf-8'));
|
90
|
+
break;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
if (!pkg) return;
|
95
|
+
|
96
|
+
// resolve pkg.svelte first for backwards compatibility
|
97
|
+
// we should resolve it after exports longer-term
|
98
|
+
if (entry === '.' && pkg.svelte) {
|
99
|
+
return path.resolve(dir, pkg.svelte);
|
100
|
+
}
|
101
|
+
|
102
|
+
const resolved = await this.resolve(importee, importer, { skipSelf: true, ...options });
|
103
|
+
|
104
|
+
// if we can't resolve this import without the `svelte` condition, warn the user
|
105
|
+
if (!resolved) {
|
106
|
+
try {
|
107
|
+
resolve(pkg, entry, { conditions: ['svelte'] });
|
108
|
+
|
109
|
+
if (!warned) {
|
110
|
+
console.error(
|
111
|
+
"\n\u001B[1m\u001B[31mWARNING: Your @rollup/plugin-node-resolve configuration's 'exportConditions' array should include 'svelte'. See https://github.com/sveltejs/rollup-plugin-svelte#svelte-exports-condition for more information\u001B[39m\u001B[22m\n"
|
112
|
+
);
|
113
|
+
warned = true;
|
114
|
+
}
|
115
|
+
} catch (e) {
|
116
|
+
// do nothing, this isn't a Svelte library
|
117
|
+
}
|
118
|
+
}
|
119
|
+
},
|
120
|
+
|
121
|
+
/**
|
122
|
+
* Returns CSS contents for a file, if ours
|
123
|
+
*/
|
124
|
+
load(id) {
|
125
|
+
return cache_emit.get(id) || null;
|
126
|
+
},
|
127
|
+
|
128
|
+
/**
|
129
|
+
* Transforms a `.svelte` file into a `.js` file.
|
130
|
+
* NOTE: If `emitCss`, append static `import` to virtual CSS file.
|
131
|
+
*/
|
132
|
+
async transform(code, id) {
|
133
|
+
if (!filter(id)) return null;
|
134
|
+
|
135
|
+
if (majorVersion > 4 && svelte_module_regex.test(id)) {
|
136
|
+
const compiled = svelte.compileModule(code, {
|
137
|
+
filename: id,
|
138
|
+
dev: compilerOptions.dev,
|
139
|
+
generate: compilerOptions.generate,
|
140
|
+
});
|
141
|
+
|
142
|
+
(compiled.warnings || []).forEach((warning) => {
|
143
|
+
if (onwarn) onwarn(warning, this.warn);
|
144
|
+
else this.warn(warning);
|
145
|
+
});
|
146
|
+
|
147
|
+
return compiled.js;
|
148
|
+
}
|
149
|
+
|
150
|
+
const extension = path.extname(id);
|
151
|
+
if (!~extensions.indexOf(extension)) return null;
|
152
|
+
|
153
|
+
const dependencies = [];
|
154
|
+
const filename = path.relative(process.cwd(), id);
|
155
|
+
const svelte_options = { ...compilerOptions, filename };
|
156
|
+
|
157
|
+
if (rest.preprocess) {
|
158
|
+
const processed = await svelte.preprocess(code, rest.preprocess, { filename });
|
159
|
+
if (processed.dependencies) dependencies.push(...processed.dependencies);
|
160
|
+
if (processed.map) svelte_options.sourcemap = processed.map;
|
161
|
+
code = processed.code;
|
162
|
+
}
|
163
|
+
|
164
|
+
const compiled = svelte.compile(code, svelte_options);
|
165
|
+
|
166
|
+
(compiled.warnings || []).forEach((warning) => {
|
167
|
+
if (
|
168
|
+
!emitCss &&
|
169
|
+
(warning.code === 'css-unused-selector' || warning.code === 'css_unused_selector')
|
170
|
+
) {
|
171
|
+
return;
|
172
|
+
}
|
173
|
+
|
174
|
+
if (onwarn) {
|
175
|
+
onwarn(warning, this.warn);
|
176
|
+
} else {
|
177
|
+
this.warn(warning);
|
178
|
+
}
|
179
|
+
});
|
180
|
+
|
181
|
+
if (emitCss && compiled.css && compiled.css.code) {
|
182
|
+
const fname = id.replace(new RegExp(`\\${extension}$`), '.css');
|
183
|
+
compiled.js.code += `\nimport ${JSON.stringify(fname)};\n`;
|
184
|
+
cache_emit.set(fname, compiled.css);
|
185
|
+
}
|
186
|
+
|
187
|
+
if (this.addWatchFile) {
|
188
|
+
dependencies.forEach(this.addWatchFile);
|
189
|
+
} else {
|
190
|
+
compiled.js.dependencies = dependencies;
|
191
|
+
}
|
192
|
+
|
193
|
+
return compiled.js;
|
194
|
+
},
|
195
|
+
};
|
196
|
+
};
|
@@ -1,48 +1,48 @@
|
|
1
|
-
{
|
2
|
-
"version": "7.2.2",
|
3
|
-
"name": "rollup-plugin-svelte",
|
4
|
-
"description": "Compile Svelte components with Rollup",
|
5
|
-
"repository": "sveltejs/rollup-plugin-svelte",
|
6
|
-
"types": "index.d.ts",
|
7
|
-
"main": "index.js",
|
8
|
-
"license": "MIT",
|
9
|
-
"bugs": {
|
10
|
-
"url": "https://github.com/sveltejs/rollup-plugin-svelte/issues"
|
11
|
-
},
|
12
|
-
"files": [
|
13
|
-
"index.js",
|
14
|
-
"index.d.ts",
|
15
|
-
"README.md",
|
16
|
-
"LICENSE"
|
17
|
-
],
|
18
|
-
"author": "Rich Harris",
|
19
|
-
"scripts": {
|
20
|
-
"lint": "eslint index.js",
|
21
|
-
"test": "node test/index.js",
|
22
|
-
"prepublishOnly": "npm run lint && npm test"
|
23
|
-
},
|
24
|
-
"engines": {
|
25
|
-
"node": ">=10"
|
26
|
-
},
|
27
|
-
"dependencies": {
|
28
|
-
"@rollup/pluginutils": "^4.1.0",
|
29
|
-
"resolve.exports": "^2.0.0"
|
30
|
-
},
|
31
|
-
"peerDependencies": {
|
32
|
-
"rollup": ">=2.0.0",
|
33
|
-
"svelte": ">=3.5.0"
|
34
|
-
},
|
35
|
-
"devDependencies": {
|
36
|
-
"eslint": "^7.14.0",
|
37
|
-
"eslint-config-prettier": "^8.8.0",
|
38
|
-
"rollup": "^2.33.3",
|
39
|
-
"sander": "^0.6.0",
|
40
|
-
"source-map": "^0.7.3",
|
41
|
-
"svelte": "^4.0.0",
|
42
|
-
"uvu": "^0.4.1"
|
43
|
-
},
|
44
|
-
"keywords": [
|
45
|
-
"svelte",
|
46
|
-
"rollup"
|
47
|
-
]
|
48
|
-
}
|
1
|
+
{
|
2
|
+
"version": "7.2.2",
|
3
|
+
"name": "rollup-plugin-svelte",
|
4
|
+
"description": "Compile Svelte components with Rollup",
|
5
|
+
"repository": "sveltejs/rollup-plugin-svelte",
|
6
|
+
"types": "index.d.ts",
|
7
|
+
"main": "index.js",
|
8
|
+
"license": "MIT",
|
9
|
+
"bugs": {
|
10
|
+
"url": "https://github.com/sveltejs/rollup-plugin-svelte/issues"
|
11
|
+
},
|
12
|
+
"files": [
|
13
|
+
"index.js",
|
14
|
+
"index.d.ts",
|
15
|
+
"README.md",
|
16
|
+
"LICENSE"
|
17
|
+
],
|
18
|
+
"author": "Rich Harris",
|
19
|
+
"scripts": {
|
20
|
+
"lint": "eslint index.js",
|
21
|
+
"test": "node test/index.js",
|
22
|
+
"prepublishOnly": "npm run lint && npm test"
|
23
|
+
},
|
24
|
+
"engines": {
|
25
|
+
"node": ">=10"
|
26
|
+
},
|
27
|
+
"dependencies": {
|
28
|
+
"@rollup/pluginutils": "^4.1.0",
|
29
|
+
"resolve.exports": "^2.0.0"
|
30
|
+
},
|
31
|
+
"peerDependencies": {
|
32
|
+
"rollup": ">=2.0.0",
|
33
|
+
"svelte": ">=3.5.0"
|
34
|
+
},
|
35
|
+
"devDependencies": {
|
36
|
+
"eslint": "^7.14.0",
|
37
|
+
"eslint-config-prettier": "^8.8.0",
|
38
|
+
"rollup": "^2.33.3",
|
39
|
+
"sander": "^0.6.0",
|
40
|
+
"source-map": "^0.7.3",
|
41
|
+
"svelte": "^4.0.0",
|
42
|
+
"uvu": "^0.4.1"
|
43
|
+
},
|
44
|
+
"keywords": [
|
45
|
+
"svelte",
|
46
|
+
"rollup"
|
47
|
+
]
|
48
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
Copyright (c) 2016-20 [these people](https://github.com/sveltejs/svelte-preprocess/graphs/contributors)
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
|
-
|
5
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6
|
-
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1
|
+
Copyright (c) 2016-20 [these people](https://github.com/sveltejs/svelte-preprocess/graphs/contributors)
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
|
+
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|