Files
.github
.husky
.vscode
packages
app
core
dev-test
src
test
data
fileTransformer.js
mockFetch.ts
mockLocalStorage.ts
setupEnv.js
.editorconfig
.eslintignore
.eslintrc.js
.gitignore
.prettierignore
.prettierrc
babel.config.js
jest.config.integration.js
jest.config.js
package.json
tsconfig.base.json
tsconfig.dev.json
tsconfig.json
webpack.config.js
demo
docs
.eslintignore
.gitattributes
.gitignore
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
lerna.json
nx.json
package.json
renovate.json
static-cms-icon.png
static-cms-logo.png
yarn.lock
static-cms/packages/core/test/fileTransformer.js

10 lines
181 B
JavaScript
Raw Normal View History

2022-12-04 22:15:59 -05:00
const path = require('path');
module.exports = {
process(src, filename) {
return {
code: `module.exports = ${JSON.stringify(path.basename(filename))};`,
};
},
};