├── .eslintrc ├── .gitignore ├── .huskyrc ├── .lintstagedrc ├── .prettierrc ├── .travis.yml ├── CHANGELOG.md ├── README.md ├── appveyor.yml ├── index.d.ts ├── package.json ├── rollup.config.js ├── src └── index.js ├── test ├── form │ ├── delimiters │ │ ├── _config.js │ │ ├── input.js │ │ └── output.js │ ├── match-variables │ │ ├── _config.js │ │ ├── input.js │ │ └── output.js │ ├── observe-plugin-options │ │ ├── _config.js │ │ ├── input.js │ │ └── output.js │ ├── replace-strings │ │ ├── _config.js │ │ ├── input.js │ │ └── output.js │ ├── replacement-function │ │ ├── _config.js │ │ ├── input.js │ │ └── output.js │ └── special-characters │ │ ├── _config.js │ │ ├── input.js │ │ └── output.js ├── function │ ├── replacement-function │ │ ├── _config.js │ │ ├── dir │ │ │ └── foo.js │ │ └── main.js │ └── word-boundaries │ │ ├── _config.js │ │ └── main.js └── test.js ├── tsconfig.json └── typings-test.js /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | dist 4 | .gobble* 5 | -------------------------------------------------------------------------------- /.huskyrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/.huskyrc -------------------------------------------------------------------------------- /.lintstagedrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/.lintstagedrc -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/.prettierrc -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/README.md -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/appveyor.yml -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/index.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/src/index.js -------------------------------------------------------------------------------- /test/form/delimiters/_config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/form/delimiters/_config.js -------------------------------------------------------------------------------- /test/form/delimiters/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/form/delimiters/input.js -------------------------------------------------------------------------------- /test/form/delimiters/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/form/delimiters/output.js -------------------------------------------------------------------------------- /test/form/match-variables/_config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/form/match-variables/_config.js -------------------------------------------------------------------------------- /test/form/match-variables/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/form/match-variables/input.js -------------------------------------------------------------------------------- /test/form/match-variables/output.js: -------------------------------------------------------------------------------- 1 | console.log('beta version 1.0.0'); 2 | -------------------------------------------------------------------------------- /test/form/observe-plugin-options/_config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/form/observe-plugin-options/_config.js -------------------------------------------------------------------------------- /test/form/observe-plugin-options/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/form/observe-plugin-options/input.js -------------------------------------------------------------------------------- /test/form/observe-plugin-options/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/form/observe-plugin-options/output.js -------------------------------------------------------------------------------- /test/form/replace-strings/_config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/form/replace-strings/_config.js -------------------------------------------------------------------------------- /test/form/replace-strings/input.js: -------------------------------------------------------------------------------- 1 | console.log(ANSWER); 2 | -------------------------------------------------------------------------------- /test/form/replace-strings/output.js: -------------------------------------------------------------------------------- 1 | console.log(42); 2 | -------------------------------------------------------------------------------- /test/form/replacement-function/_config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/form/replacement-function/_config.js -------------------------------------------------------------------------------- /test/form/replacement-function/input.js: -------------------------------------------------------------------------------- 1 | export default __filename; 2 | -------------------------------------------------------------------------------- /test/form/replacement-function/output.js: -------------------------------------------------------------------------------- 1 | export default "input.js"; 2 | -------------------------------------------------------------------------------- /test/form/special-characters/_config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/form/special-characters/_config.js -------------------------------------------------------------------------------- /test/form/special-characters/input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/form/special-characters/input.js -------------------------------------------------------------------------------- /test/form/special-characters/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/form/special-characters/output.js -------------------------------------------------------------------------------- /test/function/replacement-function/_config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/function/replacement-function/_config.js -------------------------------------------------------------------------------- /test/function/replacement-function/dir/foo.js: -------------------------------------------------------------------------------- 1 | export default __filename; 2 | -------------------------------------------------------------------------------- /test/function/replacement-function/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/function/replacement-function/main.js -------------------------------------------------------------------------------- /test/function/word-boundaries/_config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/function/word-boundaries/_config.js -------------------------------------------------------------------------------- /test/function/word-boundaries/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/function/word-boundaries/main.js -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/test/test.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/tsconfig.json -------------------------------------------------------------------------------- /typings-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rollup/rollup-plugin-replace/HEAD/typings-test.js --------------------------------------------------------------------------------