Skip to content

Commit ac06bef

Browse files
committed
Rollup config .mjs file
1 parent e703216 commit ac06bef

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed
File renamed without changes.

scripts/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ execSync(
2828
);
2929
execSync(`mkdirp dist/es2015 && tsc --module es2015 --outDir ${es2015OutputDir} --noEmit false`);
3030
execSync(
31-
`rollup --config rollup.config.ts --configPlugin typescript && terser dist/autolinker.js --output dist/autolinker.min.js --compress --mangle --source-map "url='autolinker.min.js.map',includeSources=true"`
31+
`rollup --config rollup.config.mjs && terser dist/autolinker.js --output dist/autolinker.min.js --compress --mangle --source-map "url='autolinker.min.js.map',includeSources=true"`
3232
);
3333

3434
fixCommonJsOutput();

scripts/tsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"module": "CommonJS"
5+
}
6+
}

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
/* Basic Options */
44
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
5-
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
5+
"module": "esnext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
66
"lib": [ "ES5", "dom" ], /* Specify library files to be included in the compilation. */
77
// "allowJs": true, /* Allow javascript files to be compiled. */
88
// "checkJs": true, /* Report errors in .js files. */
@@ -46,14 +46,14 @@
4646
// "typeRoots": [], /* List of folders to include type definitions from. */
4747
// "types": [], /* Type declaration files to be included in compilation. */
4848
"allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
49-
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
49+
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
5050
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
5151

5252
/* Source Map Options */
5353
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
5454
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
5555
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
56-
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
56+
"inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
5757

5858
/* Experimental Options */
5959
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */

0 commit comments

Comments
 (0)