Update entrypoints
This commit is contained in:
parent
8503af6729
commit
6b3c4ec651
|
@ -3,15 +3,12 @@
|
|||
"type": "module",
|
||||
"version": "0.0.0",
|
||||
"description": "Handlebars wrapper for Budibase templating.",
|
||||
"main": "src/index.js",
|
||||
"main": "dist/index.cjs",
|
||||
"module": "src/index.mjs",
|
||||
"license": "MPL-2.0",
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"require": "./src/index.js",
|
||||
"import": "./src/index.mjs"
|
||||
},
|
||||
".": "./src/index.mjs",
|
||||
"./package.json": "./package.json",
|
||||
"./test/utils": "./test/utils.js"
|
||||
},
|
||||
|
|
|
@ -10,11 +10,11 @@ const production = !process.env.ROLLUP_WATCH
|
|||
|
||||
export default [
|
||||
{
|
||||
input: "src/index.mjs",
|
||||
input: "src/index.js",
|
||||
output: {
|
||||
sourcemap: !production,
|
||||
format: "esm",
|
||||
file: "./dist/bundle.mjs",
|
||||
format: "cjs",
|
||||
file: "./dist/bundle.cjs",
|
||||
},
|
||||
plugins: [
|
||||
resolve({
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
/**
|
||||
* ES6 entrypoint for rollup
|
||||
*/
|
||||
export {
|
||||
isValid,
|
||||
makePropSafe,
|
||||
getManifest,
|
||||
isJSBinding,
|
||||
encodeJSBinding,
|
||||
decodeJSBinding,
|
||||
processStringSync,
|
||||
processObjectSync,
|
||||
processString,
|
||||
processObject,
|
||||
doesContainStrings,
|
||||
doesContainString,
|
||||
disableEscaping,
|
||||
findHBSBlocks,
|
||||
convertToJS,
|
||||
setJSRunner,
|
||||
setOnErrorLog,
|
||||
FIND_ANY_HBS_REGEX,
|
||||
helpersToRemoveForJs,
|
||||
} from "./index.js"
|
||||
|
||||
export * from "./errors.js"
|
Loading…
Reference in New Issue