mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-12-09 14:40:27 +08:00
docs:更新文档
This commit is contained in:
38
node_modules/@rollup/plugin-json/dist/index.es.js
generated
vendored
Normal file
38
node_modules/@rollup/plugin-json/dist/index.es.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import { createFilter, dataToEsm } from '@rollup/pluginutils';
|
||||
|
||||
function json(options) {
|
||||
if ( options === void 0 ) options = {};
|
||||
|
||||
var filter = createFilter(options.include, options.exclude);
|
||||
var indent = 'indent' in options ? options.indent : '\t';
|
||||
|
||||
return {
|
||||
name: 'json',
|
||||
|
||||
// eslint-disable-next-line no-shadow
|
||||
transform: function transform(json, id) {
|
||||
if (id.slice(-5) !== '.json' || !filter(id)) { return null; }
|
||||
|
||||
try {
|
||||
var parsed = JSON.parse(json);
|
||||
return {
|
||||
code: dataToEsm(parsed, {
|
||||
preferConst: options.preferConst,
|
||||
compact: options.compact,
|
||||
namedExports: options.namedExports,
|
||||
indent: indent
|
||||
}),
|
||||
map: { mappings: '' }
|
||||
};
|
||||
} catch (err) {
|
||||
var message = 'Could not parse JSON file';
|
||||
var position = parseInt(/[\d]/.exec(err.message)[0], 10);
|
||||
this.warn({ message: message, id: id, position: position });
|
||||
return null;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default json;
|
||||
//# sourceMappingURL=index.es.js.map
|
||||
Reference in New Issue
Block a user